mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 13:21:38 +00:00
Port SnapshotDir tests to use insta snapshots
This commit is contained in:
parent
1c6788ea45
commit
95f06d56d8
5 changed files with 83 additions and 20 deletions
14
src/snapshot_middleware/snapshots/test__empty_folder.snap
Normal file
14
src/snapshot_middleware/snapshots/test__empty_folder.snap
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
source: src/snapshot_middleware/dir.rs
|
||||
expression: instance_snapshot
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
contributing_paths:
|
||||
- /foo
|
||||
project_node: ~
|
||||
name: foo
|
||||
class_name: Folder
|
||||
properties: {}
|
||||
children: []
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
source: src/snapshot_middleware/dir.rs
|
||||
expression: instance_snapshot
|
||||
---
|
||||
snapshot_id: ~
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
contributing_paths:
|
||||
- /foo
|
||||
project_node: ~
|
||||
name: foo
|
||||
class_name: Folder
|
||||
properties: {}
|
||||
children:
|
||||
- snapshot_id: ~
|
||||
metadata:
|
||||
ignore_unknown_instances: false
|
||||
contributing_paths:
|
||||
- /foo/Child
|
||||
project_node: ~
|
||||
name: Child
|
||||
class_name: Folder
|
||||
properties: {}
|
||||
children: []
|
||||
Loading…
Add table
Add a link
Reference in a new issue