Skip to content

Commit 657e091

Browse files
Refactor rate limit test to include specific output checks for organization and limits
1 parent 6dbf41b commit 657e091

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ describe('Rate Limit Commands', () => {
137137
it('Get Rate Limit: should print the rate limit for the given organization', async () => {
138138
configHandler.set('rateLimit', rateLimit);
139139
await GetRateLimitCommand.run(['--org', 'test-org-id']);
140-
expect(printMessage).to.include(' test-org-id 10(70%) 0 1(80%) ');
140+
expect(printMessage).to.include('test-org-id');
141+
expect(printMessage).to.include('10(70%)');
142+
expect(printMessage).to.include('0');
143+
expect(printMessage).to.include('1(80%)');
141144
});
142145

143146
it('Get Rate Limit: should throw an error if the organization is not found', async () => {

0 commit comments

Comments
 (0)