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

Commit 14a8c74

Browse files
committed
Remove message regex
1 parent 194530f commit 14a8c74

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ test('scheme-mapper#release maps correctly', t => {
5252
})
5353

5454
test('scheme-mapper#release fails with invalid object', t => {
55-
const error = t.throws(() => {
55+
t.throws(() => {
5656
return release(null)
5757
})
58-
t.regex(error.message, /^Cannot read .* null$/g)
5958
})
6059

6160
test('scheme-mapper#tag maps correctly', t => {
@@ -73,8 +72,7 @@ test('scheme-mapper#tag maps correctly', t => {
7372
})
7473

7574
test('scheme-mapper#tag fails with invalid object', t => {
76-
const error = t.throws(() => {
75+
t.throws(() => {
7776
return release(null)
7877
})
79-
t.regex(error.message, /^Cannot read .* null$/g)
8078
})

0 commit comments

Comments
 (0)