From b9cc5585aba6f9c430cd8faa87e8ac8fdc17aa4e Mon Sep 17 00:00:00 2001 From: Julian Gonggrijp Date: Sun, 22 Dec 2024 22:58:33 +0100 Subject: [PATCH] Initial test for _.pipe (#2809) --- test/utility.js | 7 +++++++ 1 file changed, 7 insertions(+) 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!'); + }); + }());