Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit c995762

Browse files
committed
Update test to work on Node v14
1 parent 1254727 commit c995762

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/test/test-scheme-mapper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ test('scheme-mapper#release fails with invalid object', t => {
5555
const error = t.throws(() => {
5656
return release(null)
5757
})
58-
t.regex(error.message, /^Cannot read properties of null/g)
58+
t.regex(error.message, /^Cannot read .* null$/g)
5959
})
6060

6161
test('scheme-mapper#tag maps correctly', t => {
@@ -76,5 +76,5 @@ test('scheme-mapper#tag fails with invalid object', t => {
7676
const error = t.throws(() => {
7777
return release(null)
7878
})
79-
t.regex(error.message, /^Cannot read properties of null/g)
79+
t.regex(error.message, /^Cannot read .* null$/g)
8080
})

0 commit comments

Comments
 (0)