We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 579ea15 commit 372998aCopy full SHA for 372998a
tests/unit/errors.spec.ts
@@ -80,6 +80,16 @@ describe('Errors: ', () => {
80
// don't use errorInstances if you need stacktrace
81
expect(first.stack).toEqual(second.stack);
82
});
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
+ });
93
94
95
describe('Backward compatibility flag', () => {
0 commit comments