File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
import _ from './util/lodash-wrap'
2
2
import create from './matchers/create'
3
3
4
- export default _ . tap ( create ( {
4
+ const callback = create ( {
5
5
name : 'callback' ,
6
6
matches ( matcherArgs , actual ) {
7
7
return _ . isFunction ( actual )
@@ -10,8 +10,10 @@ export default _.tap(create({
10
10
matcherInstance . args = matcherArgs
11
11
matcherInstance . __testdouble_callback = true
12
12
}
13
- } ) , ( callback ) => {
14
- // Make callback itself quack like a matcher for its non-invoked use case.
15
- callback . __name = 'callback'
16
- callback . __matches = _ . isFunction
17
13
} )
14
+
15
+ // Make callback itself quack like a matcher for its non-invoked use case.
16
+ callback . __name = 'callback'
17
+ callback . __matches = _ . isFunction
18
+
19
+ export default callback
You can’t perform that action at this time.
0 commit comments