Skip to content

Commit 2dce0cd

Browse files
committed
Testing another scenario
1 parent 3494b92 commit 2dce0cd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

example/Tests/sharedvalue-tests.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ export const sharedvalue_tests = {
145145
return ExpectValue(p, { a: 100, b: 200 });
146146
},
147147

148+
object_value_spread_2: () => {
149+
const sharedValue = Worklets.createSharedValue([{ a: 100, b: 200 }]);
150+
const p = { ...sharedValue.value[0] };
151+
return ExpectValue(p, { a: 100, b: 200 });
152+
},
153+
148154
set_value_from_worklet: () => {
149155
const sharedValue = Worklets.createSharedValue("hello world");
150156
const worklet = Worklets.defaultContext.createRunAsync(function () {

0 commit comments

Comments
 (0)