jasmine doesn't really require typescript@2.3 (#21284)

This commit is contained in:
Andy
2017-11-06 10:59:21 -08:00
committed by GitHub
parent 855a798867
commit 88131dc81e
2 changed files with 5 additions and 6 deletions

View File

@@ -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

View File

@@ -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");
});