Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yalamber committed Apr 19, 2020
1 parent d825676 commit 7b18ac2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nepal-geo-data",
"version": "1.0.0",
"version": "1.0.1",
"description": "Geo Data of Nepal scrapped from http://103.69.124.141/ \r This repo contains geo data coordinates up to Local body level.",
"main": "index.js",
"scripts": {
Expand Down
8 changes: 8 additions & 0 deletions tests/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const geoData = require('../index');

test('get geo data from lat lng', async () => {
let data = await geoData.geoLocate(26.4831, 87.28337);
expect(data.province).toBe('Province1');
expect(data.district).toBe('MORANG');
expect(data.localBody).toBe('Biratnagar');
});

0 comments on commit 7b18ac2

Please sign in to comment.