diff options
Diffstat (limited to 'node_modules/ava/index.js.flow')
-rw-r--r-- | node_modules/ava/index.js.flow | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/node_modules/ava/index.js.flow b/node_modules/ava/index.js.flow index b86e22c65..e0bda9aef 100644 --- a/node_modules/ava/index.js.flow +++ b/node_modules/ava/index.js.flow @@ -69,7 +69,7 @@ type AssertContext = { // Assert that contents matches regex. regex(contents: string, regex: RegExp, message?: string): void; // Assert that contents matches a snapshot. - snapshot(contents: any, message?: string): void; + snapshot: ((contents: any, message?: string) => void) & ((contents: any, options: {id: string}, message?: string) => void); // Assert that contents does not match regex. notRegex(contents: string, regex: RegExp, message?: string): void; // Assert that error is falsy. @@ -81,8 +81,10 @@ type AssertContext = { */ type TestContext = AssertContext & { + title: string; plan(count: number): void; skip: AssertContext; + log(message: string): void; }; type ContextualTestContext = TestContext & { context: any; }; type ContextualCallbackTestContext = TestContext & { context: any; end(): void; }; |