Skip to content

Commit 6012255

Browse files
committed
chore: Fix eslint-plugin-import newly reported linting errors hit by web-ext tests.
1 parent 143bb8b commit 6012255

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/setup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import chai from 'chai';
1+
import { use as chaiUse } from 'chai';
22
import chaiAsPromised from 'chai-as-promised';
33

44
// Enable chai-as-promised plugin.
5-
chai.use(chaiAsPromised);
5+
chaiUse(chaiAsPromised);

tests/unit/test-util/test.adb.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import EventEmitter from 'events';
22

3-
import chai from 'chai';
3+
import { assert } from 'chai';
44
import { afterEach, describe, it } from 'mocha';
55
import * as sinon from 'sinon';
66

@@ -36,8 +36,6 @@ ${fakeSocketFilePrefix} /dev/socket/mdns
3636
${fakeSocketFilePrefix} ${fakeRDPUnixSocketFile}
3737
`;
3838

39-
const { assert } = chai;
40-
4139
function getFakeADBKit({ adbClient = {}, adbkitUtil = {}, adbDevice = {} }) {
4240
const fakeTransfer = new EventEmitter();
4341
const adbUtilReadAllStub = sinon.stub();

0 commit comments

Comments
 (0)