From 76d8a28714bdcc68dac2cc57d7b2a8975b05dd25 Mon Sep 17 00:00:00 2001 From: Mitya Kononchuk Date: Tue, 14 Nov 2017 17:49:49 +0100 Subject: [PATCH] Fix that bug --- types/jasmine/index.d.ts | 2 +- types/jasmine/jasmine-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/jasmine/index.d.ts b/types/jasmine/index.d.ts index 8775122526..af484b3da7 100644 --- a/types/jasmine/index.d.ts +++ b/types/jasmine/index.d.ts @@ -88,7 +88,7 @@ declare function expect(actual: ArrayLike): jasmine.ArrayLikeMatchers; * Create an expectation for a spec. * @param actual Actual computed value to test expectations against. */ -declare function expect(actual?: T): jasmine.Matchers; +declare function expect(actual: T): jasmine.Matchers; /** * Explicitly mark a spec as failed. diff --git a/types/jasmine/jasmine-tests.ts b/types/jasmine/jasmine-tests.ts index ab132d3cee..80ba94035c 100644 --- a/types/jasmine/jasmine-tests.ts +++ b/types/jasmine/jasmine-tests.ts @@ -672,7 +672,7 @@ describe("Multiple spies, when created manually", () => { describe("jasmine.nothing", () => { it("matches any value", () => { - expect().nothing(); + expect("s").nothing(); }); });