Skip to content

Commit

Permalink
Fix context for beforeEach and afterEach hooks in Flow type definitio…
Browse files Browse the repository at this point in the history
…n file (#1344)
  • Loading branch information
zs-zs authored and novemberborn committed Apr 10, 2017
1 parent bd81ef4 commit d169f0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ declare module.exports: {
( run: ContextualTest): void;
(name: string, run: ContextualTest): void;

beforeEach : TestMethod;
afterEach : TestMethod;
beforeEach : ContextualTestMethod;
afterEach : ContextualTestMethod;
serial : ContextualTestMethod;
before : ContextualTestMethod;
after : ContextualTestMethod;
Expand Down
1 change: 0 additions & 1 deletion test/flow-types/regression-1114.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ test.cb(t => {
});

test.beforeEach(t => {
// $ExpectError: Unknown property "context"
const context = t.context;
})

Expand Down

0 comments on commit d169f0e

Please sign in to comment.