From d4ac76081ea72d1d21d81f6e7acef16ccb24eba0 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 28 Jan 2014 22:19:07 -0800 Subject: [PATCH] Correct `_.compose` unit test. --- test/test.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/test/test.js b/test/test.js index 76bb54e4e..1bd6fd394 100644 --- a/test/test.js +++ b/test/test.js @@ -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); + }); }()); /*--------------------------------------------------------------------------*/