mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Correct _.compose unit test.
This commit is contained in:
@@ -1259,12 +1259,10 @@
|
||||
var welcome = _.compose(greet, format);
|
||||
equal(welcome('pebbles'), 'Hiya Penelope!');
|
||||
});
|
||||
|
||||
test('should return original function if only one function passed', 1, function(){
|
||||
var noop = function(){};
|
||||
equal(_.compose(noop), noop);
|
||||
});
|
||||
|
||||
test('should return a new function', 1, function() {
|
||||
notStrictEqual(_.compose(_.noop), _.noop);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user