mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import {uniq} from 'sentry/utils/array/uniq';
|
|
|
|
describe('uniq', () => {
|
|
it('should return unique elements', () => {
|
|
expect(uniq([1, 3, 5, 3])).toStrictEqual([1, 3, 5]);
|
|
});
|
|
|
|
it('should return empty array for undefined input', () => {
|
|
expect(uniq(undefined)).toStrictEqual([]);
|
|
});
|
|
});
|