Correct _.compose unit test.

This commit is contained in:
John-David Dalton
2014-01-28 22:19:07 -08:00
parent 63727b67ee
commit d4ac76081e

View File

@@ -1260,11 +1260,9 @@
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);
});
}());
/*--------------------------------------------------------------------------*/