Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

Commit b6fcb03

Browse files
author
Mark
committed
Fix ESLint chai error
1 parent e95abf4 commit b6fcb03

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tests/scroll-into-view-tests.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import sinon from 'sinon/pkg/sinon-esm';
2-
import 'chai/chai';
2+
import 'chai/chai'; // make window.chai available
3+
import * as chai from 'chai'; // import for typings
34
import { scrollIntoView, utils } from '../src/scroll';
45
import createStub from 'raf-stub';
56

6-
declare global {
7-
interface Window {
8-
chai: Chai.ChaiStatic;
9-
}
10-
}
11-
12-
const { assert, expect } = window.chai;
7+
const { assert, expect } = (window as any).chai as typeof chai;
138

149
let mockRaf;
1510

0 commit comments

Comments
 (0)