mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
14 lines
336 B
JavaScript
14 lines
336 B
JavaScript
import { slice } from './utils';
|
|
import flip from '../src/flip';
|
|
|
|
describe('flip', () => {
|
|
function fn() {
|
|
return slice.call(arguments);
|
|
}
|
|
|
|
it('should flip arguments provided to `func`', () => {
|
|
const flipped = flip(fn);
|
|
expect(flipped('a', 'b', 'c', 'd'), ['d', 'c', 'b').toEqual('a']);
|
|
});
|
|
});
|