Skip to content

Commit 372998a

Browse files
ARSN-503: Test KMS arsenalError
1 parent 579ea15 commit 372998a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/unit/errors.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,16 @@ describe('Errors: ', () => {
8080
// don't use errorInstances if you need stacktrace
8181
expect(first.stack).toEqual(second.stack);
8282
});
83+
84+
it('should have KMS.NotFoundException', () => {
85+
const err = errorInstances['KMS.NotFoundException'];
86+
expect(err).toBeInstanceOf(ArsenalError);
87+
expect(err.is['KMS.NotFoundException']).toBeTruthy();
88+
expect(err.type).toEqual('KMS.NotFoundException');
89+
expect(err.code).toEqual(400);
90+
expect(err.description).toEqual(
91+
'The request was rejected because the specified entity or resource could not be found.');
92+
});
8393
});
8494

8595
describe('Backward compatibility flag', () => {

0 commit comments

Comments
 (0)