Skip to content

Commit

Permalink
ci: fix failing test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Oct 16, 2023
1 parent c38ba2c commit 8d16b67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/front_matter.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@ test.group('Front matter', () => {
`

parseJSONFrontMatter(contents)
}).throws(`Unexpected token 'o', " to: 'foo'" is not valid JSON`)
}).throws(
new RegExp(`Unexpected token 'o', " to: 'foo'" is not valid JSON|Unexpected token o in JSON at position 5
`)
)
})

0 comments on commit 8d16b67

Please sign in to comment.