@@ -60,22 +60,22 @@ describe("SentientAI", () => {
6060 it ( "should throw if FAST_LLM_MODEL is not set" , ( ) => {
6161 delete process . env . FAST_LLM_MODEL ;
6262 expect ( ( ) => new SentientAI ( ) ) . toThrow (
63- "FAST_LLM_MODEL and LLM_MODEL must be set" ,
63+ "FAST_LLM_MODEL and LLM_MODEL must be set"
6464 ) ;
6565 } ) ;
6666
6767 it ( "should throw if LLM_MODEL is not set" , ( ) => {
6868 delete process . env . LLM_MODEL ;
6969 expect ( ( ) => new SentientAI ( ) ) . toThrow (
70- "FAST_LLM_MODEL and LLM_MODEL must be set" ,
70+ "FAST_LLM_MODEL and LLM_MODEL must be set"
7171 ) ;
7272 } ) ;
7373
7474 it ( "should throw if both models are not set" , ( ) => {
7575 delete process . env . FAST_LLM_MODEL ;
7676 delete process . env . LLM_MODEL ;
7777 expect ( ( ) => new SentientAI ( ) ) . toThrow (
78- "FAST_LLM_MODEL and LLM_MODEL must be set" ,
78+ "FAST_LLM_MODEL and LLM_MODEL must be set"
7979 ) ;
8080 } ) ;
8181
@@ -88,7 +88,6 @@ describe("SentientAI", () => {
8888
8989 describe ( "getRawData" , ( ) => {
9090 it ( "should return raw data for an enabled tool" , async ( ) => {
91- process . env . ENABLED_TOOLS = "weather-current" ;
9291 const sentai = new SentientAI ( ) ;
9392 const params = { latitude : 37.7749 , longitude : - 122.4194 } ;
9493 const result = await sentai . getRawData ( "weather-current" , params ) ;
@@ -99,15 +98,7 @@ describe("SentientAI", () => {
9998 process . env . ENABLED_TOOLS = "weather-current" ;
10099 const sentai = new SentientAI ( ) ;
101100 await expect ( sentai . getRawData ( "non-existent-tool" , { } ) ) . rejects . toThrow (
102- "Tool 'non-existent-tool' not found" ,
103- ) ;
104- } ) ;
105-
106- it ( "should throw when tool is not enabled" , async ( ) => {
107- process . env . ENABLED_TOOLS = "weather-current" ;
108- const sentai = new SentientAI ( ) ;
109- await expect ( sentai . getRawData ( "weather-forecast" , { } ) ) . rejects . toThrow (
110- "Tool 'weather-forecast' is not enabled" ,
101+ "Tool 'non-existent-tool' not found"
111102 ) ;
112103 } ) ;
113104 } ) ;
0 commit comments