mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
wip: code formatting nits continued
This commit is contained in:
16
test/uniq.spec.js
Normal file
16
test/uniq.spec.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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],
|
||||
];
|
||||
const actual = lodashStable.map(array, lodashStable.uniq);
|
||||
|
||||
expect(actual).toEqual([
|
||||
[2, 1],
|
||||
[1, 2],
|
||||
]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user