Skip to content

Commit

Permalink
updating data files and fixing related tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phanindra48 committed Jan 9, 2017
1 parent a5054d8 commit 5cb667f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
Binary file modified data/geoip-city-names.dat
Binary file not shown.
Binary file modified data/geoip-city.dat
Binary file not shown.
Binary file modified data/geoip-city6.dat
Binary file not shown.
Binary file modified data/geoip-country.dat
Binary file not shown.
Binary file modified data/geoip-country6.dat
Binary file not shown.
10 changes: 5 additions & 5 deletions test/tests.js
Expand Up @@ -16,18 +16,18 @@ module.exports = {
test.ok(actual, 'should return data about IPv6.');

test.done();
},
},

testUTF8: function(test) {
test.expect(2);

var ip = "31.17.106.227";
var expected = "Neumünster";
var ip = "95.23.1.184";
var expected = "Logroño";
var actual = geoip.lookup(ip);

test.ok(actual, "Should return a non-null value for " + ip);
test.equal(actual.city, expected, "UTF8 city name does not match");

test.done();
},

Expand All @@ -47,7 +47,7 @@ module.exports = {

var actual = geoip.lookup("::ffff:173.185.182.82");

test.equal(actual.city, "Glen Rose");
test.equal(actual.city, "Granbury");
test.equal(actual.metro, 623);

test.done();
Expand Down

0 comments on commit 5cb667f

Please sign in to comment.