repo.or.cz
/
ProtonMail-WebClient.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'feat/inda-383-daily-stat' into 'main'
[ProtonMail-WebClient.git]
/
packages
/
utils
/
unique.test.ts
blob
2ceae9598488a3cfa8cb244ba94dfc7dcb3546ba
1
import unique from './unique';
2
3
describe('unique()', () => {
4
it('should return same', () => {
5
expect(unique([1, 2])).toEqual([1, 2]);
6
});
7
8
it('should only return unique items', () => {
9
expect(unique([1, 2, 1])).toEqual([1, 2]);
10
});
11
});