Skip to content

Commit 30d2d26

Browse files
committed
test: fix mocking
1 parent 3110225 commit 30d2d26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

__tests__/urlEncoding.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ describe('URL Encoding', () => {
2929
const value = encoding[key]
3030
// @ts-ignore
3131
if (typeof value === 'function') encoding[key] = jest.fn((v: string) => v)
32+
// @ts-ignore
33+
else if (key === 'PLUS_RE') encoding[key] = /\+/g
3234
}
3335
})
3436

0 commit comments

Comments
 (0)