Skip to content

Commit a0740bb

Browse files
committed
Fix failing test case
1 parent f914461 commit a0740bb

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/contentstack-config/test/unit/commands/rate-limit.test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,16 @@ describe('Rate Limit Commands', () => {
1818
errorMessage = undefined;
1919
printMessage = undefined;
2020

21+
configHandler.set('region', {
22+
cma: 'https://api.contentstack.io',
23+
cda: 'https://cdn.contentstack.io',
24+
uiHost: 'https://app.contentstack.com',
25+
name: 'NA',
26+
});
27+
if (!configHandler.get('rateLimit')) {
28+
configHandler.set('rateLimit', {});
29+
}
30+
2131
stub(cliux, 'error').callsFake((message: string) => {
2232
errorMessage = message;
2333
});

0 commit comments

Comments
 (0)