mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Update snapshot files to remove unnecessary attributes and improve consistency in property handling
- Cleared out redundant attributes from various snapshot files, specifically removing `Rojo_Target_Value` and `Rojo_Target_PrimaryPart` where applicable. - Ensured that attributes are consistently represented as empty objects when not needed, enhancing clarity in the snapshot structure. - Adjusted related test cases to reflect these changes, ensuring alignment with the updated snapshot expectations.
This commit is contained in:
parent
cd05690d8a
commit
1af3a18bcd
26 changed files with 64 additions and 87 deletions
|
|
@ -2,6 +2,7 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/ignored_part.model.json
|
||||
Writing src/int_value.model.json
|
||||
Writing src/subfolder/string_value.txt
|
||||
Writing src/subfolder
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/Message.rbxm
|
||||
Writing src/Message.model.json
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/ChildWithDuplicates.rbxm
|
||||
Writing src/ChildWithoutDuplicates/Child/.gitkeep
|
||||
Writing src/ChildWithoutDuplicates
|
||||
Writing src/ChildWithoutDuplicates/Child
|
||||
Removing src/ChildWithDuplicates
|
||||
|
|
|
|||
|
|
@ -3,5 +3,4 @@ source: tests/rojo_test/syncback_util.rs
|
|||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/pointer.model.json
|
||||
Writing src/target.meta.json
|
||||
Writing src/target.txt
|
||||
|
|
|
|||
|
|
@ -2,5 +2,7 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/Pointer_1.model.json
|
||||
Writing src/Pointer_2.model.json
|
||||
Writing src/Target_1.model.json
|
||||
Writing src/Target_2.model.json
|
||||
|
|
|
|||
|
|
@ -2,4 +2,6 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
|
||||
Writing src/Pointer_1.model.json
|
||||
Writing src/Pointer_2.model.json
|
||||
Writing src/Target.model.json
|
||||
|
|
|
|||
|
|
@ -7,15 +7,15 @@ expression: container.model.json
|
|||
{
|
||||
"attributes": {
|
||||
"Rojo_Id": "value_1",
|
||||
"Rojo_Target_Value": "value_1"
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/container/value_1"
|
||||
},
|
||||
"className": "ObjectValue",
|
||||
"name": "value_1"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Id": "72bc28150ada2e6206442ee300004084",
|
||||
"Rojo_Target_Value": "72bc28150ada2e6206442ee300004084"
|
||||
"Rojo_Id": "value_1",
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/container/value_2"
|
||||
},
|
||||
"className": "ObjectValue",
|
||||
"name": "value_2"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/Message.model.json
|
||||
---
|
||||
{
|
||||
"className": "Message",
|
||||
"properties": {
|
||||
"Text": "This message should be written to the disk."
|
||||
}
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@ expression: src/pointer.model.json
|
|||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Target_Value": "test referent id"
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/target"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ expression: src/pointer.model.json
|
|||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Target_Value": "62e89c49e4f800c20629c71b00003fc0"
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/target"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ expression: src/Pointer_2.model.json
|
|||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Target_Value": "0bd3e9e11879191708a2bc4a00000c20"
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/Target_2"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ expression: src/Target_2.model.json
|
|||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Id": "0bd3e9e11879191708a2bc4a00000c20"
|
||||
"Rojo_Id": "identical ID"
|
||||
},
|
||||
"className": "Folder"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,8 @@ source: tests/tests/syncback.rs
|
|||
expression: src/Pointer1.model.json
|
||||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/Target1"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,8 @@ source: tests/tests/syncback.rs
|
|||
expression: src/Pointer2.model.json
|
||||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/Target2"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,8 @@ source: tests/tests/syncback.rs
|
|||
expression: src/Pointer3.model.json
|
||||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/Target3"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue