mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
jasmine doesn't really require typescript@2.3 (#21284)
This commit is contained in:
3
types/jasmine/index.d.ts
vendored
3
types/jasmine/index.d.ts
vendored
@@ -2,8 +2,7 @@
|
||||
// Project: http://jasmine.github.io/
|
||||
// Definitions by: Boris Yankov <https://github.com/borisyankov>, Theodore Brown <https://github.com/theodorejb>, David Pärsson <https://github.com/davidparsson>, Gabe Moothart <https://github.com/gmoothart>, Lukas Zech <https://github.com/lukas-zech-software>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
// For ddescribe / iit use : https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/karma-jasmine/karma-jasmine.d.ts
|
||||
|
||||
|
||||
@@ -961,13 +961,13 @@ describe("Custom matcher: 'toBeGoofy'", () => {
|
||||
hyuk: 'this is fun'
|
||||
}).not.toBeGoofy();
|
||||
});
|
||||
|
||||
|
||||
it("has a proper message on failure", () => {
|
||||
const actual = { hyuk: 'this is fun' };
|
||||
|
||||
const matcher = customMatchers.toBeGoofy(jasmine.matchersUtil, []);
|
||||
|
||||
const matcher = customMatchers["toBeGoofy"](jasmine.matchersUtil, []);
|
||||
const result = matcher.compare(actual, null);
|
||||
|
||||
|
||||
expect(result.pass).toBe(false);
|
||||
expect(result.message).toBe("Expected " + actual + " to be goofy, but it was not very goofy");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user