Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Aug 24, 2022
1 parent 2f307d8 commit 550efef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/data/codec/custom.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ describe(`decoder`, () => {

expectType<(string: string) => AB['*']>(AB.from.fooOrThrow)
expect(() => AB.from.fooOrThrow(``)).toThrowError(
`Failed to decode value \`''\` into any of the records for this ADT.`
`Failed to decode value \`""\` into any of the records for this ADT.`
)
})
})
Expand Down
10 changes: 5 additions & 5 deletions tests/match/match.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ describe(`.<tag> (Data Matcher)`, () => {
builder.A
// @ts-expect-error ^^^
expect(() => builder.A({ m: `` }, () => 1)).toThrowErrorMatchingInlineSnapshot(`
"Cannot define this data matcher:
{ m: '' }
for A because it will never match because it comes after matching on A generally."
`)
"Cannot define this data matcher:
{\\"m\\":\\"\\"}
for A because it will never match because it comes after matching on A generally."
`)
})
})
describe(`after a data matcher`, () => {
Expand Down Expand Up @@ -208,7 +208,7 @@ describe(`.done`, () => {
.done()
).toThrowErrorMatchingInlineSnapshot(`
"No matcher matched on the given data. This should be impossible. Are you sure the runtime is not different than the static types? Please report a bug at https://todo. The given data was:
{ bad: true }"
{\\"bad\\":true}"
`)
})
})

0 comments on commit 550efef

Please sign in to comment.