Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
update anthropic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patcher9 committed Mar 24, 2024
1 parent f66f613 commit 1b422c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/anthropic.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ describe('Anthropic Test', () => {
});
expect(message.type).to.equal('message');
} catch (error) {
if (error.type === 'rate_limit_error') {
console.error(`Daily Rate limit Reached`);
if (typeof error.message === 'string' && error.message.includes('rate limit')) {
console.error("Daily Rate limit Reached");
}
}
}).timeout(30000);
Expand All @@ -42,8 +42,8 @@ describe('Anthropic Test', () => {
}
}
} catch (error) {
if (error.type === 'rate_limit_error') {
console.error(`Daily Rate limit Reached`);
if (typeof error.message === 'string' && error.message.includes('rate limit')) {
console.error("Daily Rate limit Reached");
}
}
}).timeout(30000);
Expand Down

0 comments on commit 1b422c5

Please sign in to comment.