Skip to content

Commit

Permalink
Use Node's resolve() logic to find module for test
Browse files Browse the repository at this point in the history
  • Loading branch information
thw0rted committed Sep 12, 2019
1 parent aa251ac commit b6a4216
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"types": "index.d.ts",
"scripts": {
"lint": "eslint mgrs.js && eslint test",
"test": "npm run build && nyc mocha test/test.js",
"pretest": "npm run clean && npm run build",
"test": "nyc mocha test/test.js",
"clean": "rimraf dist",
"build": "mkdirp dist && rollup -c"
},
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const should = require('chai').should(); // eslint-disable-line no-unused-vars
const mgrs = require('../dist/mgrs');
const mgrs = require('../');
const { readFileSync } = require('fs');

describe('First MGRS set', () => {
Expand Down

0 comments on commit b6a4216

Please sign in to comment.