Skip to content

Commit

Permalink
Add safer-buffer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Oct 5, 2024
1 parent aa55663 commit d25cd9b
Show file tree
Hide file tree
Showing 2 changed files with 550 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/npm/is-regex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ describe(`npm > ${regPkgName}`, async () => {
false,
'proxy of plain object is not regex'
)
// Test for no side-effects.
// https://github.com/inspect-js/is-regex/issues/35
assert.deepStrictEqual(
handler.trapCalls,
[],
Expand All @@ -140,6 +142,8 @@ describe(`npm > ${regPkgName}`, async () => {
false,
'proxy of RegExp instance is not regex'
)
// Test for no side-effects.
// https://github.com/inspect-js/is-regex/issues/35
assert.deepStrictEqual(
handler.trapCalls,
[],
Expand Down
Loading

0 comments on commit d25cd9b

Please sign in to comment.