Skip to content

Commit

Permalink
please flow gods
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Apr 15, 2018
1 parent 8e52472 commit 081fcf5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions flow-typed/npm/jest_v21.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,22 +433,22 @@ type JestSpyType = {

/** Runs this function after every test inside this context */
declare function afterEach(
fn: (done: () => void) => ?Promise<mixed>,
fn: (done: (error: ?Error) => void) => ?Promise<mixed>,
timeout?: number,
): void;
/** Runs this function before every test inside this context */
declare function beforeEach(
fn: (done: () => void) => ?Promise<mixed>,
fn: (done: (error: ?Error) => void) => ?Promise<mixed>,
timeout?: number,
): void;
/** Runs this function after all tests have finished inside this context */
declare function afterAll(
fn: (done: () => void) => ?Promise<mixed>,
fn: (done: (error: ?Error) => void) => ?Promise<mixed>,
timeout?: number,
): void;
/** Runs this function before any tests have started inside this context */
declare function beforeAll(
fn: (done: () => void) => ?Promise<mixed>,
fn: (done: (error: ?Error) => void) => ?Promise<mixed>,
timeout?: number,
): void;

Expand Down Expand Up @@ -481,7 +481,7 @@ declare var it: {
*/
(
name: string,
fn?: (done: () => void) => ?Promise<mixed>,
fn?: (done: (error: ?Error) => void) => ?Promise<mixed>,
timeout?: number,
): void,
/**
Expand All @@ -493,7 +493,7 @@ declare var it: {
*/
only(
name: string,
fn?: (done: () => void) => ?Promise<mixed>,
fn?: (done: (error: ?Error) => void) => ?Promise<mixed>,
timeout?: number,
): void,
/**
Expand All @@ -505,7 +505,7 @@ declare var it: {
*/
skip(
name: string,
fn?: (done: () => void) => ?Promise<mixed>,
fn?: (done: (error: ?Error) => void) => ?Promise<mixed>,
timeout?: number,
): void,
/**
Expand All @@ -517,13 +517,13 @@ declare var it: {
*/
concurrent(
name: string,
fn?: (done: () => void) => ?Promise<mixed>,
fn?: (done: (error: ?Error) => void) => ?Promise<mixed>,
timeout?: number,
): void,
};
declare function fit(
name: string,
fn: (done: () => void) => ?Promise<mixed>,
fn: (done: (error: ?Error) => void) => ?Promise<mixed>,
timeout?: number,
): void;
/** An individual test unit */
Expand Down

0 comments on commit 081fcf5

Please sign in to comment.