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

Commit

Permalink
Fix ESLint chai error
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark committed Dec 20, 2020
1 parent e95abf4 commit b6fcb03
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tests/scroll-into-view-tests.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import sinon from 'sinon/pkg/sinon-esm';
import 'chai/chai';
import 'chai/chai'; // make window.chai available
import * as chai from 'chai'; // import for typings
import { scrollIntoView, utils } from '../src/scroll';
import createStub from 'raf-stub';

declare global {
interface Window {
chai: Chai.ChaiStatic;
}
}

const { assert, expect } = window.chai;
const { assert, expect } = (window as any).chai as typeof chai;

let mockRaf;

Expand Down

0 comments on commit b6fcb03

Please # to comment.