Support construct

This commit is contained in:
Mitya Kononchuk
2017-11-14 19:06:05 +01:00
parent 76d8a28714
commit 9f33e8c468
2 changed files with 6 additions and 1 deletions

View File

@@ -90,6 +90,11 @@ declare function expect<T>(actual: ArrayLike<T>): jasmine.ArrayLikeMatchers<T>;
*/
declare function expect<T>(actual: T): jasmine.Matchers<T>;
/**
* Create an expectation for a spec.
*/
declare function expect(): jasmine.Matchers<undefined>;
/**
* Explicitly mark a spec as failed.
* @param e

View File

@@ -672,7 +672,7 @@ describe("Multiple spies, when created manually", () => {
describe("jasmine.nothing", () => {
it("matches any value", () => {
expect("s").nothing();
expect().nothing();
});
});