Skip to content

Commit e47cb97

Browse files
format
1 parent ca4053b commit e47cb97

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/ai/__tests__/backend.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,33 +23,33 @@ describe('Backend', () => {
2323
describe('GoogleAIBackend', () => {
2424
it('sets backendType to GOOGLE_AI', () => {
2525
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);
2727
});
2828
});
2929

3030
describe('VertexAIBackend', () => {
3131
it('set backendType to VERTEX_AI', () => {
3232
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);
3535
});
3636

3737
it('sets custom location', () => {
3838
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');
4141
});
4242

4343
it('uses default location if location is empty string', () => {
4444
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);
4747
});
4848

4949
it('uses default location if location is null', () => {
5050
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);
5353
});
5454
});
5555
});

0 commit comments

Comments
 (0)