Skip to content

Commit c40477a

Browse files
SamVerschuerensindresorhus
authored andcommitted
fix context in beforeEach and afterEach hooks - fixes #1004 (#1008)
1 parent a4d0e81 commit c40477a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/make.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function testType(parts) {
128128
type = 'Callback' + type;
129129
}
130130

131-
if (!has('beforeEach') && !has('afterEach')) {
131+
if (!has('before') && !has('after')) {
132132
type = 'Contextual' + type;
133133
}
134134

0 commit comments

Comments
 (0)