Update Jest types

Fix `MatcherUtils.utils.EXPECTED_COLOR` and `MatcherUtils.utils.RECEIVED_COLOR` to be functions.
This commit is contained in:
Bradley Ayers
2018-03-21 12:01:32 +11:00
committed by GitHub
parent 3d5138fc4b
commit 23516af7bc

View File

@@ -11,6 +11,7 @@
// Jamie Mason <https://github.com/JamieMason>
// Douglas Duteil <https://github.com/douglasduteil>
// Ahn <https://github.com/AhnpGit>
// Bradley Ayers <https://github.com/bradleyayers>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -230,8 +231,8 @@ declare namespace jest {
interface MatcherUtils {
readonly isNot: boolean;
utils: {
readonly EXPECTED_COLOR: string;
readonly RECEIVED_COLOR: string;
readonly EXPECTED_COLOR: (text: string) => string;
readonly RECEIVED_COLOR: (text: string) => string;
ensureActualIsNumber(actual: any, matcherName?: string): void;
ensureExpectedIsNumber(actual: any, matcherName?: string): void;
ensureNoExpected(actual: any, matcherName?: string): void;