mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
wip: migrate to bun
This commit is contained in:
17
test/uniq.spec.ts
Normal file
17
test/uniq.spec.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import assert from 'node:assert';
|
||||
import lodashStable from 'lodash';
|
||||
|
||||
describe('uniq', () => {
|
||||
it('should perform an unsorted uniq when used as an iteratee for methods like `_.map`', () => {
|
||||
const array = [
|
||||
[2, 1, 2],
|
||||
[1, 2, 1],
|
||||
],
|
||||
actual = lodashStable.map(array, lodashStable.uniq);
|
||||
|
||||
assert.deepStrictEqual(actual, [
|
||||
[2, 1],
|
||||
[1, 2],
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user