mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Update snapshot files to reflect changes in module structure and properties
- Changed various instances from Folder to ModuleScript in snapshot files to align with updated project structure. - Added new ModuleScript instances with appropriate properties in multiple test snapshots, enhancing test coverage for module handling. - Updated project names in syncback snapshots to ensure consistency with the new structure.
This commit is contained in:
parent
f08a4d21e7
commit
4aac7d0d48
35 changed files with 390 additions and 114 deletions
|
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: container.model.json5
|
||||
---
|
||||
{
|
||||
children: [
|
||||
{
|
||||
attributes: {
|
||||
Rojo_Id: "value_1",
|
||||
Rojo_Ref_Value: "ReplicatedStorage/container/value_1",
|
||||
},
|
||||
className: "ObjectValue",
|
||||
name: "value_1",
|
||||
},
|
||||
{
|
||||
attributes: {
|
||||
Rojo_Id: "value_1",
|
||||
Rojo_Ref_Value: "ReplicatedStorage/container/value_2",
|
||||
},
|
||||
className: "ObjectValue",
|
||||
name: "value_2",
|
||||
},
|
||||
],
|
||||
className: "Folder",
|
||||
}
|
||||
|
|
@ -3,10 +3,10 @@ source: tests/tests/syncback.rs
|
|||
expression: src/dir_with_meta/init.meta.json5
|
||||
---
|
||||
{
|
||||
className: "Configuration",
|
||||
properties: {
|
||||
Tags: [
|
||||
"This tag on dir_with_meta",
|
||||
],
|
||||
},
|
||||
className: "Configuration",
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/model_json.model.json5
|
||||
---
|
||||
{
|
||||
className: "StringValue",
|
||||
properties: {
|
||||
Value: "This text is model_json",
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/project_json.project.json5
|
||||
---
|
||||
{
|
||||
name: "project_json",
|
||||
tree: {
|
||||
$className: "Color3Value",
|
||||
$properties: {
|
||||
Value: [
|
||||
1337,
|
||||
-1337,
|
||||
1337,
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: nested.project.json5
|
||||
---
|
||||
{
|
||||
name: "Nested",
|
||||
tree: {
|
||||
$className: "Configuration",
|
||||
BoolValue: {
|
||||
$className: "BoolValue",
|
||||
$properties: {
|
||||
Value: true,
|
||||
},
|
||||
},
|
||||
StringValue: {
|
||||
$path: "string_value.txt",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: property_mismatch.project.json5
|
||||
---
|
||||
{
|
||||
name: "property_mismatch",
|
||||
tree: {
|
||||
$className: "BrickColorValue",
|
||||
$properties: {
|
||||
Value: {
|
||||
BrickColor: 345,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/pointer.model.json5
|
||||
---
|
||||
{
|
||||
attributes: {
|
||||
Rojo_Ref_Value: "ReplicatedStorage/target",
|
||||
},
|
||||
className: "ObjectValue",
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/target.model.json5
|
||||
---
|
||||
{
|
||||
attributes: {
|
||||
Rojo_Id: "test referent id",
|
||||
},
|
||||
className: "Folder",
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/Pointer_2.model.json5
|
||||
---
|
||||
{
|
||||
attributes: {
|
||||
Rojo_Ref_Value: "ReplicatedStorage/Target_2",
|
||||
},
|
||||
className: "ObjectValue",
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/Target_2.model.json5
|
||||
---
|
||||
{
|
||||
attributes: {
|
||||
Rojo_Id: "identical ID",
|
||||
},
|
||||
className: "Folder",
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: default.project.json5
|
||||
---
|
||||
{
|
||||
name: "respect_old_middleware",
|
||||
tree: {
|
||||
$path: "src",
|
||||
project_node: {
|
||||
$className: "BoolValue",
|
||||
$properties: {
|
||||
Value: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -5,6 +5,6 @@ expression: src/model_json.model.json5
|
|||
{
|
||||
className: "StringValue",
|
||||
properties: {
|
||||
Value: "This should be a .model.json5 file",
|
||||
Value: "This should be a .model.json file",
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: default.project.json5
|
||||
---
|
||||
{
|
||||
$schema: "rojo/project-schema",
|
||||
name: "schema_roundtrip",
|
||||
tree: {
|
||||
$className: "Folder",
|
||||
src: {
|
||||
$path: "src",
|
||||
},
|
||||
trigger_reserialization: {
|
||||
$className: "BoolValue",
|
||||
$properties: {
|
||||
Value: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/adjacent.meta.json5
|
||||
---
|
||||
{
|
||||
$schema: "rojo/adjacent-meta",
|
||||
attributes: {
|
||||
trigger_reserialization: true,
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/init/init.meta.json5
|
||||
---
|
||||
{
|
||||
$schema: "rojo/init-meta",
|
||||
attributes: {
|
||||
trigger_reserialization: true,
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/model.model.json5
|
||||
---
|
||||
{
|
||||
$schema: "rojo/model.json",
|
||||
className: "BoolValue",
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: default.project.json5
|
||||
---
|
||||
{
|
||||
name: "string_value_project",
|
||||
tree: {
|
||||
$className: "Folder",
|
||||
inside_project_file: {
|
||||
$className: "StringValue",
|
||||
$properties: {
|
||||
Value: "imgettingverytiredofwritingthesetests2",
|
||||
},
|
||||
},
|
||||
on_file_system: {
|
||||
$attributes: {
|
||||
imgettingverytiredofwritingthesetests: "person299 was ahead of his time",
|
||||
},
|
||||
$path: "string_value.txt",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: default.project.json5
|
||||
---
|
||||
{
|
||||
name: "unscriptable_properties",
|
||||
syncbackRules: {
|
||||
syncUnscriptable: true,
|
||||
},
|
||||
tree: {
|
||||
$className: "BinaryStringValue",
|
||||
$properties: {
|
||||
Value: {
|
||||
BinaryString: "Rojo/is/cool",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue