Skip to content

Commit 0f9e525

Browse files
committed
fix(settings): fix use before define by removing unused variable
1 parent 2d8b840 commit 0f9e525

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/compass-sidebar/src/modules/instance.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { expect } from 'chai';
22
import { createInstance } from '../../test/helpers';
3-
import { spy, stub, type SinonSpy, type SinonStub } from 'sinon';
3+
import { spy, stub, type SinonSpy } from 'sinon';
44
import type { DataService } from 'mongodb-data-service';
55
import { setupInstance } from './instance';
66
import type { RootState } from '.';
@@ -33,16 +33,13 @@ describe('sidebar instance', function () {
3333
} as any;
3434
let instancesManager: MongoDBInstancesManager;
3535
let logger: Logger;
36-
let listMongoDBInstancesStub: SinonStub;
3736

3837
beforeEach(async function () {
3938
const preferences = await createSandboxFromDefaultPreferences();
4039
instance = createInstance(undefined, undefined, preferences);
4140
instanceOnSpy = spy();
4241
instance.on = instanceOnSpy;
43-
instancesManager = {
44-
listMongoDBInstances: listMongoDBInstancesStub,
45-
} as any;
42+
instancesManager = {} as any;
4643
logger = {
4744
log: { warn() {} },
4845
mongoLogId() {},

0 commit comments

Comments
 (0)