stu
Version:
Stub dependencies when testing
15 lines • 589 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const ava_1 = __importDefault(require("ava"));
const getFunctionKeys_1 = __importDefault(require("./getFunctionKeys"));
ava_1.default('should get any custom function keys', (t) => {
const fn = function () { };
fn.a = 1;
fn.b = 2;
fn.c = 3;
t.deepEqual(getFunctionKeys_1.default(fn), ['a', 'b', 'c']);
});
//# sourceMappingURL=getFunctionKeys.spec.js.map