Skip to content

Commit 35799ca

Browse files
author
Josh Goldberg
committed
Whoops, no quotes
1 parent 30bfa79 commit 35799ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/__tests__/matches.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ test('matchers throw on invalid matcher inputs', () => {
3131
expect(() =>
3232
matches('ABC', node, null, normalizer),
3333
).toThrowErrorMatchingInlineSnapshot(
34-
`"It looks like null was passed instead of a matcher. Did you do something like getByText(\\"null\\")?"`,
34+
`"It looks like null was passed instead of a matcher. Did you do something like getByText(null)?"`,
3535
)
3636
expect(() =>
3737
fuzzyMatches('ABC', node, undefined, normalizer),
3838
).toThrowErrorMatchingInlineSnapshot(
39-
`"It looks like undefined was passed instead of a matcher. Did you do something like getByText(\\"undefined\\")?"`,
39+
`"It looks like undefined was passed instead of a matcher. Did you do something like getByText(undefined)?"`,
4040
)
4141
})

src/matches.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function assertNotNullOrUndefined(matcher) {
22
if (matcher == null) {
33
throw new Error(
4-
`It looks like ${matcher} was passed instead of a matcher. Did you do something like getByText("${matcher}")?`,
4+
`It looks like ${matcher} was passed instead of a matcher. Did you do something like getByText(${matcher})?`,
55
)
66
}
77
}

0 commit comments

Comments
 (0)