Skip to content

Commit 735cdc7

Browse files
committed
fix typing for onTabClickSpy
1 parent 0975274 commit 735cdc7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/compass-indexes/src/components/create-index-form/create-index-form.spec.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,17 @@ import { render, screen, fireEvent } from '@mongodb-js/testing-library-compass';
33
import { CreateIndexForm } from './create-index-form';
44
import type { Field } from '../../modules/create-index';
55
import { expect } from 'chai';
6+
import type { SinonSpy } from 'sinon';
67

78
import sinon from 'sinon';
89

910
describe('CreateIndexForm', () => {
10-
let onTabClickSpy;
11+
let onTabClickSpy: SinonSpy;
1112

1213
beforeEach(function () {
1314
onTabClickSpy = sinon.spy();
1415
});
1516

16-
afterEach(function () {
17-
onTabClickSpy = null;
18-
});
19-
2017
const renderComponent = ({
2118
showIndexesGuidanceVariant,
2219
}: {

0 commit comments

Comments
 (0)