UNPKG

te-flow

Version:

A function pipeline of sorts to control flow.

10 lines (9 loc) 311 B
var expect = require('expect.js'); var teFlow = require('te-flow'); describe('Saftey', function () { it('If an object is passed as an first arg but with no options it should carry on as noraml', function () { var res = teFlow({one: 1, two: 2, three: 3}); expect(res) .to.eql([1, 2, 3]); }); });