1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const lodash_1 = require("./wrap/lodash");
|
4 | const create_1 = require("./matchers/create");
|
5 | const callback = (0, create_1.default)({
|
6 | name: 'callback',
|
7 | matches(matcherArgs, actual) {
|
8 | return lodash_1.default.isFunction(actual);
|
9 | },
|
10 | onCreate(matcherInstance, matcherArgs) {
|
11 | matcherInstance.args = matcherArgs;
|
12 | matcherInstance.__testdouble_callback = true;
|
13 | }
|
14 | });
|
15 |
|
16 | callback.__name = 'callback';
|
17 | callback.__matches = lodash_1.default.isFunction;
|
18 | exports.default = callback;
|