Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jun 12, 2024
1 parent a7b2368 commit 4a138e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm install
- run: npm test
4 changes: 2 additions & 2 deletions test/api-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,15 +418,15 @@ describe('IP library for node.js', () => {
describe('address() method', () => {
describe('undefined', () => {
it('should respond with a private ip', () => {
assert.ok(ip.isPrivate(ip.address()));
assert.ok(ip.isPrivate(ip.address()), `${ip.address()} should be private`);
});
});

describe('private', () => {
[undefined, 'ipv4', 'ipv6'].forEach((family) => {
describe(family || 'undefined', () => {
it('should respond with a private ip', () => {
assert.ok(ip.isPrivate(ip.address('private', family)));
assert.ok(ip.isPrivate(ip.address('private', family)), `${ip.address('private', family)} should be private`);
});
});
});
Expand Down

0 comments on commit 4a138e3

Please sign in to comment.