mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-04 19:42:46 +08:00
Support construct
This commit is contained in:
5
types/jasmine/index.d.ts
vendored
5
types/jasmine/index.d.ts
vendored
@@ -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
|
||||
|
||||
@@ -672,7 +672,7 @@ describe("Multiple spies, when created manually", () => {
|
||||
|
||||
describe("jasmine.nothing", () => {
|
||||
it("matches any value", () => {
|
||||
expect("s").nothing();
|
||||
expect().nothing();
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user