diff --git a/test/utility.js b/test/utility.js index 5ef36d6cb..f5cd57b9b 100644 --- a/test/utility.js +++ b/test/utility.js @@ -490,4 +490,11 @@ assert.ok(_.isUndefined(_.templateSettings.variable), 'cleanup'); }); + QUnit.test('pipe', function(assert) { + function upper(string) { return string.toUpperCase(); } + function exclaim(string) { return string + '!'; } + + assert.strictEqual(_.pipe('hello', upper, exclaim), 'HELLO!'); + }); + }());