Skip to content

Commit

Permalink
Initial test for _.pipe (jashkenas#2809)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Dec 22, 2024
1 parent 478e03d commit b9cc558
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
});

}());

0 comments on commit b9cc558

Please # to comment.