forked from rojo-rbx/rojo
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for project files that represent middleware with special pro…
…perties
- Loading branch information
Showing
7 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
...t/syncback-test-snapshots/end_to_end__rojo_test__syncback_util__string_value_project.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: tests/rojo_test/syncback_util.rs | ||
assertion_line: 48 | ||
expression: "visualize_fs_snapshot(&fs_snapshot, &output_path)" | ||
--- | ||
added_files: | ||
- default.project.json | ||
- string_value.txt | ||
added_dirs: [] | ||
removed_files: [] | ||
removed_dirs: [] | ||
|
20 changes: 20 additions & 0 deletions
20
rojo-test/syncback-tests/string_value_project/expected/default.project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "string_value_project", | ||
"tree": { | ||
"$className": "DataModel", | ||
"ReplicatedStorage": { | ||
"inside_project_file": { | ||
"$className": "StringValue", | ||
"$properties": { | ||
"Value": "imgettingverytiredofwritingthesetests2" | ||
} | ||
}, | ||
"on_file_system": { | ||
"$attributes": { | ||
"imgettingverytiredofwritingthesetests": "person299 was ahead of his time" | ||
}, | ||
"$path": "string_value.txt" | ||
} | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
rojo-test/syncback-tests/string_value_project/expected/string_value.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
shout out to the brown bug anthology in person299's admin commands |
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
rojo-test/syncback-tests/string_value_project/output/default.project.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"name": "string_value_project", | ||
"tree": { | ||
"$className": "DataModel", | ||
"ReplicatedStorage": { | ||
"on_file_system": { | ||
"$path": "string_value.txt" | ||
}, | ||
"inside_project_file": { | ||
"$className": "StringValue" | ||
} | ||
} | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,5 @@ syncback_basic_test! { | |
project_reserialize, | ||
project_all_middleware, | ||
duplicate_rojo_id, | ||
string_value_project, | ||
} |