From b5d0ee30ccfac95ba4f11af4ee6f106f1a2cce8e Mon Sep 17 00:00:00 2001 From: wwestrop Date: Wed, 13 Dec 2017 21:06:27 +0000 Subject: [PATCH] Better understanding of what dtslint is doing, refined test --- types/mocha/mocha-tests.ts | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/types/mocha/mocha-tests.ts b/types/mocha/mocha-tests.ts index 490cacd325..865f880530 100644 --- a/types/mocha/mocha-tests.ts +++ b/types/mocha/mocha-tests.ts @@ -456,14 +456,8 @@ function test_throwError() { mocha.throwError(new Error("I'm an error!")); } - - - - - -// dtslint - -import * as Mocha from "mocha"; - -new Mocha().run(); // $ExpectType IRunner -new Mocha().run().on("", function() {}); // $ExpectType IRunner \ No newline at end of file +function test_runner_fluentParams() { + new MochaDef().run(); // $ExpectType IRunner + new MochaDef().run().on("event-string", function() {}); // $ExpectType IRunner + new MochaDef().run().on(Symbol("event-symbol"), function() {}); // $ExpectType IRunner +}