mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-23 14:15:24 +00:00
Expand patch_apply tests
This commit is contained in:
15
src/snapshot/tests/snapshots/apply__add_property-2.snap
Normal file
15
src/snapshot/tests/snapshots/apply__add_property-2.snap
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
source: src/snapshot/tests/apply.rs
|
||||
expression: applied_patch_value
|
||||
---
|
||||
removed: []
|
||||
added: []
|
||||
updated:
|
||||
- id: id-1
|
||||
changed_name: ~
|
||||
changed_class_name: ~
|
||||
changed_properties:
|
||||
Foo:
|
||||
Type: String
|
||||
Value: Value of Foo
|
||||
changed_metadata: ~
|
||||
16
src/snapshot/tests/snapshots/apply__add_property.snap
Normal file
16
src/snapshot/tests/snapshots/apply__add_property.snap
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
source: src/snapshot/tests/apply.rs
|
||||
expression: tree_value
|
||||
---
|
||||
id: id-1
|
||||
name: ROOT
|
||||
class_name: ROOT
|
||||
properties:
|
||||
Foo:
|
||||
Type: String
|
||||
Value: Value of Foo
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
source_path: ~
|
||||
project_node: ~
|
||||
children: []
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
source: src/snapshot/tests/apply.rs
|
||||
expression: tree_value
|
||||
---
|
||||
id: id-1
|
||||
name: ROOT
|
||||
class_name: ROOT
|
||||
properties: {}
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
source_path: ~
|
||||
project_node: ~
|
||||
children: []
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
source: src/snapshot/tests/apply.rs
|
||||
expression: applied_patch_value
|
||||
---
|
||||
removed: []
|
||||
added: []
|
||||
updated:
|
||||
- id: id-1
|
||||
changed_name: ~
|
||||
changed_class_name: ~
|
||||
changed_properties:
|
||||
Foo: ~
|
||||
changed_metadata: ~
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
source: src/snapshot/tests/apply.rs
|
||||
expression: tree_value
|
||||
---
|
||||
id: id-1
|
||||
name: ROOT
|
||||
class_name: ROOT
|
||||
properties:
|
||||
Foo:
|
||||
Type: String
|
||||
Value: Should be removed
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
source_path: ~
|
||||
project_node: ~
|
||||
children: []
|
||||
Reference in New Issue
Block a user