mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
wip: code formatting nits continued
This commit is contained in:
13
test/flip.spec.js
Normal file
13
test/flip.spec.js
Normal file
@@ -0,0 +1,13 @@
|
||||
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']);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user