Skip to content

Commit 24ed68b

Browse files
committed
fix: make tests pass locally
1 parent 4e43323 commit 24ed68b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

test/index.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ const geolite2 = require('../');
55
const rimraf = require('rimraf');
66
const maxmind = require('maxmind');
77

8-
describe('geolite2', async function() {
9-
const paths = {
10-
'GeoLite2-ASN': path.resolve('../dbs/GeoLite2-ASN.mmdb'),
11-
'GeoLite2-Country': path.resolve('../dbs/GeoLite2-Country.mmdb'),
12-
'GeoLite2-City': path.resolve('../dbs/GeoLite2-City.mmdb')
13-
};
8+
const paths = {
9+
'GeoLite2-ASN': path.resolve('dbs/GeoLite2-ASN.mmdb'),
10+
'GeoLite2-Country': path.resolve('dbs/GeoLite2-Country.mmdb'),
11+
'GeoLite2-City': path.resolve('dbs/GeoLite2-City.mmdb')
12+
};
1413

14+
describe('geolite2', async function() {
1515
it('should contain a valid ASN db', function() {
1616
let stat = fs.statSync(paths['GeoLite2-ASN']);
1717
assert(stat.size > 1e6);
@@ -88,19 +88,19 @@ describe('geolite2.UpdateSubscriber', function() {
8888
it('should retrieve a valid ASN db', function() {
8989
updateSubscriber.close();
9090

91-
let stat = fs.statSync(geolite2.paths['GeoLite2-ASN']);
91+
let stat = fs.statSync(paths['GeoLite2-ASN']);
9292
assert(stat.size > 1e6);
9393
assert(stat.ctime);
9494
});
9595

9696
it('should retrieve a valid country db', function() {
97-
let stat = fs.statSync(geolite2.paths['GeoLite2-Country']);
97+
let stat = fs.statSync(paths['GeoLite2-Country']);
9898
assert(stat.size > 1e6);
9999
assert(stat.ctime);
100100
});
101101

102102
it('should retrieve a valid city db', function() {
103-
let stat = fs.statSync(geolite2.paths['GeoLite2-City']);
103+
let stat = fs.statSync(paths['GeoLite2-City']);
104104
assert(stat.size > 1e6);
105105
assert(stat.ctime);
106106
});

0 commit comments

Comments
 (0)