Skip to content

Commit 011553f

Browse files
ESLint fixes
1 parent 1e885b9 commit 011553f

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

lib/index.d.ts

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import chai = require("chai");
21
import { Options } from "@jsdevtools/ez-spawn";
32

43
/**
@@ -16,15 +15,13 @@ interface ChaiExec extends ChaiExecSync {
1615
chaiExecAsync: ChaiExecAsync;
1716
}
1817

19-
interface ChaiPlugin {
20-
/**
21-
* The Chai-Exec plugin
22-
*
23-
* @example
24-
* chai.use(chaiExec);
25-
*/
26-
(chai: Chai.ChaiStatic, util: object): void;
27-
}
18+
/**
19+
* The Chai-Exec plugin
20+
*
21+
* @example
22+
* chai.use(chaiExec);
23+
*/
24+
type ChaiPlugin = (chai: Chai.ChaiStatic, util: object) => void;
2825

2926
interface ChaiExecSync extends ChaiPlugin {
3027
defaults: Defaults;
@@ -242,7 +239,7 @@ interface Defaults {
242239
/**
243240
* The options to use for all calls
244241
*/
245-
options?: Options,
242+
options?: Options;
246243
}
247244

248245

test/specs/sync-async.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ describe("chaiExecSync", () => {
1616
// Expect syntax
1717
expect(cli).exit.code.to.equal(0);
1818
expect(cli).stdout.to.equal("Argument #1: --foo\nArgument #2: --bar\n");
19-
expect(cli).stderr.to.be.empty;
19+
expect(cli).stderr.to.have.lengthOf(0);
2020
expect(cli).output.to.equal("Argument #1: --foo\nArgument #2: --bar\n");
2121

2222
// Should syntax
2323
cli.should.have.exit.code(0);
2424
cli.should.have.stdout.that.equals("Argument #1: --foo\nArgument #2: --bar\n");
25-
cli.should.have.stderr.that.is.empty;
25+
cli.should.have.stderr.that.has.lengthOf(0);
2626
cli.should.have.output.that.equals("Argument #1: --foo\nArgument #2: --bar\n");
2727

2828
// Assert syntax
@@ -40,13 +40,13 @@ describe("chaiExecAsync", () => {
4040
// Expect syntax
4141
expect(cli).exit.code.to.equal(0);
4242
expect(cli).stdout.to.equal("Argument #1: --foo\nArgument #2: --bar\n");
43-
expect(cli).stderr.to.be.empty;
43+
expect(cli).stderr.to.have.lengthOf(0);
4444
expect(cli).output.to.equal("Argument #1: --foo\nArgument #2: --bar\n");
4545

4646
// Should syntax
4747
cli.should.have.exit.code(0);
4848
cli.should.have.stdout.that.equals("Argument #1: --foo\nArgument #2: --bar\n");
49-
cli.should.have.stderr.that.is.empty;
49+
cli.should.have.stderr.that.has.lengthOf(0);
5050
cli.should.have.output.that.equals("Argument #1: --foo\nArgument #2: --bar\n");
5151

5252
// Assert syntax

test/specs/typescript-definition.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import chai = require("chai");
2-
import chaiExec = require("../../");
1+
import * as chai from "chai";
2+
import * as chaiExec from "../../";
33

44
const { assert, expect } = chai;
55
const { chaiExecSync, chaiExecAsync } = chaiExec;

0 commit comments

Comments
 (0)