ts-prime
Version:
A utility library for JavaScript and Typescript.
12 lines (11 loc) • 455 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var createPipe_1 = require("./createPipe");
it('should pipe a single operation', function () {
var fn = createPipe_1.createPipe(function (x) { return x * 2; });
expect(fn(1)).toEqual(2);
});
it('should pipe operations', function () {
var fn = createPipe_1.createPipe(function (x) { return x * 2; }, function (x) { return x * 3; });
expect(fn(1)).toEqual(6);
});