mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
wip: migrate to bun
This commit is contained in:
14
test/flip.spec.ts
Normal file
14
test/flip.spec.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import assert from 'node:assert';
|
||||
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);
|
||||
assert.deepStrictEqual(flipped('a', 'b', 'c', 'd'), ['d', 'c', 'b', 'a']);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user