@@ -23,33 +23,33 @@ describe('Backend', () => {
23
23
describe ( 'GoogleAIBackend' , ( ) => {
24
24
it ( 'sets backendType to GOOGLE_AI' , ( ) => {
25
25
const backend = new GoogleAIBackend ( ) ;
26
- expect ( backend . backendType ) . toBe ( BackendType . GOOGLE_AI ) ; // Use toBe instead of to.equal
26
+ expect ( backend . backendType ) . toBe ( BackendType . GOOGLE_AI ) ;
27
27
} ) ;
28
28
} ) ;
29
29
30
30
describe ( 'VertexAIBackend' , ( ) => {
31
31
it ( 'set backendType to VERTEX_AI' , ( ) => {
32
32
const backend = new VertexAIBackend ( ) ;
33
- expect ( backend . backendType ) . toBe ( BackendType . VERTEX_AI ) ; // Use toBe instead of to.equal
34
- expect ( backend . location ) . toBe ( DEFAULT_LOCATION ) ; // Use toBe instead of to.equal
33
+ expect ( backend . backendType ) . toBe ( BackendType . VERTEX_AI ) ;
34
+ expect ( backend . location ) . toBe ( DEFAULT_LOCATION ) ;
35
35
} ) ;
36
36
37
37
it ( 'sets custom location' , ( ) => {
38
38
const backend = new VertexAIBackend ( 'test-location' ) ;
39
- expect ( backend . backendType ) . toBe ( BackendType . VERTEX_AI ) ; // Use toBe instead of to.equal
40
- expect ( backend . location ) . toBe ( 'test-location' ) ; // Use toBe instead of to.equal
39
+ expect ( backend . backendType ) . toBe ( BackendType . VERTEX_AI ) ;
40
+ expect ( backend . location ) . toBe ( 'test-location' ) ;
41
41
} ) ;
42
42
43
43
it ( 'uses default location if location is empty string' , ( ) => {
44
44
const backend = new VertexAIBackend ( '' ) ;
45
- expect ( backend . backendType ) . toBe ( BackendType . VERTEX_AI ) ; // Use toBe instead of to.equal
46
- expect ( backend . location ) . toBe ( DEFAULT_LOCATION ) ; // Use toBe instead of to.equal
45
+ expect ( backend . backendType ) . toBe ( BackendType . VERTEX_AI ) ;
46
+ expect ( backend . location ) . toBe ( DEFAULT_LOCATION ) ;
47
47
} ) ;
48
48
49
49
it ( 'uses default location if location is null' , ( ) => {
50
50
const backend = new VertexAIBackend ( null as any ) ;
51
- expect ( backend . backendType ) . toBe ( BackendType . VERTEX_AI ) ; // Use toBe instead of to.equal
52
- expect ( backend . location ) . toBe ( DEFAULT_LOCATION ) ; // Use toBe instead of to.equal
51
+ expect ( backend . backendType ) . toBe ( BackendType . VERTEX_AI ) ;
52
+ expect ( backend . location ) . toBe ( DEFAULT_LOCATION ) ;
53
53
} ) ;
54
54
} ) ;
55
55
} ) ;
0 commit comments