Skip to content

Commit

Permalink
declare eslint dep, move test file
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson committed Apr 8, 2024
1 parent aae89dd commit 4903d72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 2 additions & 5 deletions test/ipaddr.test.js → lib/ipaddr.test.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
/* when min node>=18, we can replace mocha with node.js built in test runner
const assert = require('node:assert')
const { describe, it } = require('node:test')
*/

const assert = require('assert');
const { IPv6, IPv4 } = require('../lib/ipaddr');
const { IPv6, IPv4 } = require('./ipaddr');

const ipaddr = require('../lib/ipaddr');
const ipaddr = require('./ipaddr');

describe('ipaddr', () => {

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@
},
"dependencies": {},
"devDependencies": {
"eslint": "^8.57.0",
"uglify-es": "*"
},
"scripts": {
"lint": "npx eslint@^8 lib test",
"lintfix": "npx eslint@^8 --fix lib test",
"lint": "npx eslint lib",
"lintfix": "npx eslint --fix lib test",
"build": "npx uglifyjs --compress --mangle --wrap=window -o ipaddr.min.js lib/ipaddr.js",
"test": "npx mocha@^10"
"test": "node --test"
},
"files": [
"lib/",
"lib",
"LICENSE",
"ipaddr.min.js"
],
Expand Down

0 comments on commit 4903d72

Please sign in to comment.