Skip to content

Commit 6d528a7

Browse files
committed
fix: make the error message match exactly
the previous way was a substring match
1 parent 9fe320e commit 6d528a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/AdobeState.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ describe('private methods', () => {
705705
mockCLIEnv.mockReturnValue(env)
706706

707707
await expect(AdobeState.init({ ...fakeCredentials, region })).rejects
708-
.toThrow('[AdobeStateLib:ERROR_BAD_ARGUMENT] /region must be equal to one of the allowed values: amer, emea, apac')
708+
.toThrow(new Error('[AdobeStateLib:ERROR_BAD_ARGUMENT] /region must be equal to one of the allowed values: amer, emea, apac'))
709709
})
710710
})
711711

0 commit comments

Comments
 (0)