mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-29 00:56:46 +00:00
Add test for folder of scripts being mutated
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
source: rojo-test/src/serve_test.rs
|
||||
expression: read_result
|
||||
---
|
||||
sessionId: id-1
|
||||
messageCursor: 0
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
@@ -14,3 +12,5 @@ instances:
|
||||
Children: []
|
||||
Metadata:
|
||||
ignoreUnknownInstances: true
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
source: rojo-test/src/serve_test.rs
|
||||
expression: info
|
||||
---
|
||||
sessionId: id-1
|
||||
serverVersion: 0.6.0-dev
|
||||
protocolVersion: 3
|
||||
expectedPlaceIds: ~
|
||||
protocolVersion: 3
|
||||
rootInstanceId: id-2
|
||||
serverVersion: 0.6.0-dev
|
||||
sessionId: id-1
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
source: rojo-test/src/serve_test.rs
|
||||
expression: read_result
|
||||
---
|
||||
sessionId: id-1
|
||||
messageCursor: 0
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
@@ -17,3 +15,5 @@ instances:
|
||||
Children: []
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
source: rojo-test/src/serve_test.rs
|
||||
expression: info
|
||||
---
|
||||
sessionId: id-1
|
||||
serverVersion: 0.6.0-dev
|
||||
protocolVersion: 3
|
||||
expectedPlaceIds: ~
|
||||
protocolVersion: 3
|
||||
rootInstanceId: id-2
|
||||
serverVersion: 0.6.0-dev
|
||||
sessionId: id-1
|
||||
|
||||
42
rojo-test/serve-test-snapshots/serve_test__scripts-2.snap
Normal file
42
rojo-test/serve-test-snapshots/serve_test__scripts-2.snap
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
source: rojo-test/src/serve_test.rs
|
||||
expression: read_result
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
Parent: ~
|
||||
Name: scripts
|
||||
ClassName: Folder
|
||||
Properties: {}
|
||||
Children:
|
||||
- id-3
|
||||
- id-4
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
id-3:
|
||||
Id: id-3
|
||||
Parent: id-2
|
||||
Name: bar
|
||||
ClassName: Script
|
||||
Properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: "-- Hello, from bar!"
|
||||
Children: []
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
id-4:
|
||||
Id: id-4
|
||||
Parent: id-2
|
||||
Name: foo
|
||||
ClassName: ModuleScript
|
||||
Properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: "-- Hello, from foo!"
|
||||
Children: []
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
18
rojo-test/serve-test-snapshots/serve_test__scripts-3.snap
Normal file
18
rojo-test/serve-test-snapshots/serve_test__scripts-3.snap
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
source: rojo-test/src/serve_test.rs
|
||||
expression: subscribe_result
|
||||
---
|
||||
messageCursor: 1
|
||||
messages:
|
||||
- removedInstances: []
|
||||
addedInstances: {}
|
||||
updatedInstances:
|
||||
- id: id-4
|
||||
changedName: ~
|
||||
changedClassName: ~
|
||||
changedProperties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: Updated foo!
|
||||
changedMetadata: ~
|
||||
sessionId: id-1
|
||||
42
rojo-test/serve-test-snapshots/serve_test__scripts-4.snap
Normal file
42
rojo-test/serve-test-snapshots/serve_test__scripts-4.snap
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
source: rojo-test/src/serve_test.rs
|
||||
expression: read_result
|
||||
---
|
||||
instances:
|
||||
id-2:
|
||||
Id: id-2
|
||||
Parent: ~
|
||||
Name: scripts
|
||||
ClassName: Folder
|
||||
Properties: {}
|
||||
Children:
|
||||
- id-3
|
||||
- id-4
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
id-3:
|
||||
Id: id-3
|
||||
Parent: id-2
|
||||
Name: bar
|
||||
ClassName: Script
|
||||
Properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: "-- Hello, from bar!"
|
||||
Children: []
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
id-4:
|
||||
Id: id-4
|
||||
Parent: id-2
|
||||
Name: foo
|
||||
ClassName: ModuleScript
|
||||
Properties:
|
||||
Source:
|
||||
Type: String
|
||||
Value: Updated foo!
|
||||
Children: []
|
||||
Metadata:
|
||||
ignoreUnknownInstances: false
|
||||
messageCursor: 1
|
||||
sessionId: id-1
|
||||
9
rojo-test/serve-test-snapshots/serve_test__scripts.snap
Normal file
9
rojo-test/serve-test-snapshots/serve_test__scripts.snap
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
source: rojo-test/src/serve_test.rs
|
||||
expression: info
|
||||
---
|
||||
expectedPlaceIds: ~
|
||||
protocolVersion: 3
|
||||
rootInstanceId: id-2
|
||||
serverVersion: 0.6.0-dev
|
||||
sessionId: id-1
|
||||
Reference in New Issue
Block a user