We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 657e091 commit 9dd7bd7Copy full SHA for 9dd7bd7
1 file changed
packages/contentstack-config/test/unit/commands/rate-limit.test.ts
@@ -92,8 +92,13 @@ describe('Rate Limit Commands', () => {
92
},
93
});
94
const config = { org: 'test-org-id', utilize: ['70'], 'limit-name': ['getLimit'] };
95
- await handler.setRateLimit(config);
96
- expect(errorMessage).to.include('Error: Unable to set the rate limit');
+ try {
+ await handler.setRateLimit(config);
97
+ expect.fail('Expected an error to be thrown');
98
+ } catch (error) {
99
+ expect(error).to.be.an('error');
100
+ expect(error.message).to.equal('Error: Client Error');
101
+ }
102
103
104
it('Set Rate Limit: should handle unauthenticated user', async () => {
0 commit comments