@@ -34,6 +34,9 @@ const mockGetRequestyModels = getRequestyModels as jest.MockedFunction<typeof ge
3434const mockGetGlamaModels = getGlamaModels as jest . MockedFunction < typeof getGlamaModels >
3535const mockGetUnboundModels = getUnboundModels as jest . MockedFunction < typeof getUnboundModels >
3636
37+ const DUMMY_REQUESTY_KEY = "requesty-key-for-testing"
38+ const DUMMY_UNBOUND_KEY = "unbound-key-for-testing"
39+
3740describe ( "getModels with new GetModelsOptions" , ( ) => {
3841 beforeEach ( ( ) => {
3942 jest . clearAllMocks ( )
@@ -88,9 +91,9 @@ describe("getModels with new GetModelsOptions", () => {
8891 }
8992 mockGetRequestyModels . mockResolvedValue ( mockModels )
9093
91- const result = await getModels ( { provider : "requesty" , apiKey : "requesty-key" } )
94+ const result = await getModels ( { provider : "requesty" , apiKey : DUMMY_REQUESTY_KEY } )
9295
93- expect ( mockGetRequestyModels ) . toHaveBeenCalledWith ( "requesty-key" )
96+ expect ( mockGetRequestyModels ) . toHaveBeenCalledWith ( DUMMY_REQUESTY_KEY )
9497 expect ( result ) . toEqual ( mockModels )
9598 } )
9699
@@ -122,9 +125,9 @@ describe("getModels with new GetModelsOptions", () => {
122125 }
123126 mockGetUnboundModels . mockResolvedValue ( mockModels )
124127
125- const result = await getModels ( { provider : "unbound" , apiKey : "unbound-key" } )
128+ const result = await getModels ( { provider : "unbound" , apiKey : DUMMY_UNBOUND_KEY } )
126129
127- expect ( mockGetUnboundModels ) . toHaveBeenCalledWith ( "unbound-key" )
130+ expect ( mockGetUnboundModels ) . toHaveBeenCalledWith ( DUMMY_UNBOUND_KEY )
128131 expect ( result ) . toEqual ( mockModels )
129132 } )
130133
0 commit comments