mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-25 23:26:19 +00:00
First round of snapshot tests for patch_compute
This commit is contained in:
13
src/snapshot/tests/snapshots/compute__remove_property.snap
Normal file
13
src/snapshot/tests/snapshots/compute__remove_property.snap
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
source: src/snapshot/tests/compute.rs
|
||||
expression: patch_value
|
||||
---
|
||||
removed_instances: []
|
||||
added_instances: []
|
||||
updated_instances:
|
||||
- id: id-1
|
||||
changed_name: ~
|
||||
changed_class_name: ~
|
||||
changed_properties:
|
||||
Foo: ~
|
||||
changed_metadata: ~
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
source: src/snapshot/tests/compute.rs
|
||||
expression: patch_value
|
||||
---
|
||||
removed_instances: []
|
||||
added_instances: []
|
||||
updated_instances:
|
||||
- id: id-1
|
||||
changed_name: Some Folder
|
||||
changed_class_name: Folder
|
||||
changed_properties: {}
|
||||
changed_metadata: ~
|
||||
15
src/snapshot/tests/snapshots/compute__set_property.snap
Normal file
15
src/snapshot/tests/snapshots/compute__set_property.snap
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
source: src/snapshot/tests/compute.rs
|
||||
expression: patch_value
|
||||
---
|
||||
removed_instances: []
|
||||
added_instances: []
|
||||
updated_instances:
|
||||
- id: id-1
|
||||
changed_name: ~
|
||||
changed_class_name: ~
|
||||
changed_properties:
|
||||
PropertyName:
|
||||
Type: String
|
||||
Value: "Hello, world!"
|
||||
changed_metadata: ~
|
||||
Reference in New Issue
Block a user