UNPKG
@twilio-paste/paste-reakit-fork
Version:
latest (1.4.1)
1.4.1
Forked Reakit that addresses SSR hydration issues
twilio-labs/paste-reakit
@twilio-paste/paste-reakit-fork
/
src
/
Form
/
utils
/
__tests__
/
setAllIn-test.ts
19 lines
(17 loc)
•
282 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { unstable_setAllIn }
from
"../setAllIn"
;
test
(
"setAllIn"
, () => {
const
obj
= { a: { b: [
"c"
,
"d"
], e:
"f"
, g:
1
, }, };
expect
(
unstable_setAllIn
(obj,
"a"
)).
toEqual
({
a
: {
b
: [
"a"
,
"a"
],
e
:
"a"
,
g
:
"a"
, }, }); });