Skip to content

Commit

Permalink
update devDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind committed Feb 25, 2022
1 parent 4d9b871 commit 20f842b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"ip-regex": "^4.1.0"
},
"devDependencies": {
"eslint": "7.10.0",
"eslint-config-silverwind": "18.0.10",
"jest": "26.4.2",
"tsd": "0.13.1",
"updates": "11.1.5",
"versions": "8.4.3"
"eslint": "8.9.0",
"eslint-config-silverwind": "48.2.0",
"jest": "27.5.1",
"tsd": "0.19.1",
"updates": "13.0.2",
"versions": "9.2.2"
}
}
24 changes: 12 additions & 12 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,18 +383,18 @@ const v6negative = [
];

test("test", () => {
v4positive.forEach(string => expect(cidrRegex({exact: true}).test(string)).toEqual(true));
v4positive.forEach(string => expect((cidrRegex().exec(`foo ${string} bar`) || [])[0]).toEqual(string));
v4negative.forEach(string => expect(cidrRegex({exact: true}).test(string)).toEqual(false));
v6positive.forEach(string => expect(cidrRegex({exact: true}).test(string)).toEqual(true));
v6positive.forEach(string => expect((cidrRegex().exec(`foo ${string} bar`) || [])[0]).toEqual(string));
v6negative.forEach(string => expect(cidrRegex({exact: true}).test(string)).toEqual(false));
for (const string of v4positive) expect(cidrRegex({exact: true}).test(string)).toEqual(true);
for (const string of v4positive) expect((cidrRegex().exec(`foo ${string} bar`) || [])[0]).toEqual(string);
for (const string of v4negative) expect(cidrRegex({exact: true}).test(string)).toEqual(false);
for (const string of v6positive) expect(cidrRegex({exact: true}).test(string)).toEqual(true);
for (const string of v6positive) expect((cidrRegex().exec(`foo ${string} bar`) || [])[0]).toEqual(string);
for (const string of v6negative) expect(cidrRegex({exact: true}).test(string)).toEqual(false);

v4positive.forEach(string => expect(cidrRegex.v4({exact: true}).test(string)).toEqual(true));
v4positive.forEach(string => expect((cidrRegex.v4().exec(`foo ${string} bar`) || [])[0]).toEqual(string));
v4negative.forEach(string => expect(cidrRegex.v4({exact: true}).test(string)).toEqual(false));
for (const string of v4positive) expect(cidrRegex.v4({exact: true}).test(string)).toEqual(true);
for (const string of v4positive) expect((cidrRegex.v4().exec(`foo ${string} bar`) || [])[0]).toEqual(string);
for (const string of v4negative) expect(cidrRegex.v4({exact: true}).test(string)).toEqual(false);

v6positive.forEach(string => expect(cidrRegex.v6({exact: true}).test(string)).toEqual(true));
v6positive.forEach(string => expect((cidrRegex.v6().exec(`foo ${string} bar`) || [])[0]).toEqual(string));
v6negative.forEach(string => expect(cidrRegex.v6({exact: true}).test(string)).toEqual(false));
for (const string of v6positive) expect(cidrRegex.v6({exact: true}).test(string)).toEqual(true);
for (const string of v6positive) expect((cidrRegex.v6().exec(`foo ${string} bar`) || [])[0]).toEqual(string);
for (const string of v6negative) expect(cidrRegex.v6({exact: true}).test(string)).toEqual(false);
});

0 comments on commit 20f842b

Please # to comment.