Skip to content

Commit

Permalink
fix context in beforeEach and afterEach hooks - fixes #1004 (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren authored and sindresorhus committed Aug 17, 2016
1 parent a4d0e81 commit c40477a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function testType(parts) {
type = 'Callback' + type;
}

if (!has('beforeEach') && !has('afterEach')) {
if (!has('before') && !has('after')) {
type = 'Contextual' + type;
}

Expand Down

0 comments on commit c40477a

Please sign in to comment.