diff --git a/test/test.js b/test/test.js index 96fcd8ee5..496e4a772 100644 --- a/test/test.js +++ b/test/test.js @@ -4663,6 +4663,23 @@ /*--------------------------------------------------------------------------*/ + QUnit.module('lodash.flip'); + + (function() { + function fn() { + return slice.call(arguments); + } + + QUnit.test('should flip arguments provided to `func`', function(assert) { + assert.expect(1); + + var flipped = _.flip(fn); + assert.deepEqual(flipped('a', 'b', 'c'), ['c', 'b', 'a']); + }); + }()); + + /*--------------------------------------------------------------------------*/ + QUnit.module('lodash.take'); (function() {