FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
uniswap_interface_sc/apps/web/src/utils/arrays.test.ts at main · stringcode86/uniswap_interface_sc · GitHub
stringcode86
uniswap_interface_sc
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
uniswap_interface_sc
/
apps
/
web
/
src
/
utils
/
arrays.test.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (10 loc) · 300 Bytes
Breadcrumbs
uniswap_interface_sc
/
apps
/
web
/
src
/
utils
/
arrays.test.ts
Copy path
File metadata and controls
11 lines (10 loc) · 300 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
import
{
arrayToSlices
}
from
'utils/arrays'
describe
(
'#arrayToSlices'
,
(
)
=>
{
it
(
'returns properly sized slices'
,
(
)
=>
{
expect
(
arrayToSlices
(
[
1
,
2
,
3
,
4
,
5
,
6
]
,
3
)
)
.
toEqual
(
[
[
1
,
2
,
3
]
,
[
4
,
5
,
6
]
,
]
)
expect
(
(
)
=>
arrayToSlices
(
[
1
,
2
,
3
,
4
,
5
,
6
]
,
4
)
)
.
toThrow
(
)
}
)
}
)
Back
|
FazBrowse Home
|
New Git URL