@activecollab/components
Version:
ActiveCollab Components
23 lines (22 loc) • 735 B
JavaScript
;
var _createChainedFunction = _interopRequireDefault(require("./createChainedFunction"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe("createChainedFunction", function () {
it("should handle createChainedFunction", function () {
var one = function one() {
return "one";
};
var two = function two() {
return "two";
};
var test = (0, _createChainedFunction.default)(one, two);
var test2 = (0, _createChainedFunction.default)(null);
if (test) {
expect(test()).toEqual(undefined);
}
if (test2) {
expect(test2()).toEqual(undefined);
}
});
});
//# sourceMappingURL=createChainedFunction.test.js.map