Better understanding of what dtslint is doing, refined test

This commit is contained in:
wwestrop
2017-12-13 21:06:27 +00:00
parent 769c5388ac
commit b5d0ee30cc
+5 -11
View File
@@ -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
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
}