Skip to content

Commit e44a49b

Browse files
committed
Expect "Unexpected token"
1 parent 6014aee commit e44a49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

__test__/projects/RemoteConfigEncoder.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe('RemoteConfigEncoder', () => {
2727

2828
it('should throw an error if the decrypted string is not valid JSON', () => {
2929
const invalidJson = Buffer.from('encrypted-invalid-json').toString('base64')
30-
expect(() => encoder.decode(invalidJson)).toThrow("Unexpected token i in JSON at position 0")
30+
expect(() => encoder.decode(invalidJson)).toThrow(/Unexpected token/)
3131
})
3232

3333
it('should throw an error if the remote config is not valid', () => {

0 commit comments

Comments
 (0)