From f66f613b7b039f7cb62820a72121aec0dcc8161b Mon Sep 17 00:00:00 2001 From: patcher99 Date: Sun, 24 Mar 2024 13:41:18 +0530 Subject: [PATCH] fix error --- tests/anthropic.test.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/anthropic.test.mjs b/tests/anthropic.test.mjs index 8a39ea8..859f873 100644 --- a/tests/anthropic.test.mjs +++ b/tests/anthropic.test.mjs @@ -18,7 +18,9 @@ describe('Anthropic Test', () => { }); expect(message.type).to.equal('message'); } catch (error) { - console.log(error); + if (error.type === 'rate_limit_error') { + console.error(`Daily Rate limit Reached`); + } } }).timeout(30000); @@ -40,7 +42,9 @@ describe('Anthropic Test', () => { } } } catch (error) { - console.log(error); + if (error.type === 'rate_limit_error') { + console.error(`Daily Rate limit Reached`); + } } }).timeout(30000); }); \ No newline at end of file