Add _.flip test.

This commit is contained in:
John-David Dalton
2015-09-09 08:31:28 -07:00
parent 0a08edb6d7
commit c604be31e0

View File

@@ -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() {