-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correct issue with default.project.json files with no name being name…
…d `default` after change (#917) Co-authored-by: Kenneth Loeffler <[email protected]>
- Loading branch information
1 parent
7e2bab9
commit 3ca975d
Showing
13 changed files
with
244 additions
and
76 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...-test/serve-test-snapshots/end_to_end__tests__serve__no_name_top_level_project_all-2.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,19 @@ | ||
--- | ||
source: tests/tests/serve.rs | ||
assertion_line: 370 | ||
expression: "read_response.intern_and_redact(&mut redactions, root_id)" | ||
--- | ||
instances: | ||
id-2: | ||
Children: [] | ||
ClassName: StringValue | ||
Id: id-2 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: no_name_top_level_project | ||
Parent: "00000000000000000000000000000000" | ||
Properties: | ||
Value: | ||
String: "If this isn't named `no_name_top_level_project`, something went wrong!" | ||
messageCursor: 0 | ||
sessionId: id-1 |
41 changes: 41 additions & 0 deletions
41
rojo-test/serve-test-snapshots/end_to_end__tests__serve__sync_rule_no_name_project_all.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,41 @@ | ||
--- | ||
source: tests/tests/serve.rs | ||
assertion_line: 389 | ||
expression: "read_response.intern_and_redact(&mut redactions, root_id)" | ||
--- | ||
instances: | ||
id-2: | ||
Children: | ||
- id-3 | ||
ClassName: StringValue | ||
Id: id-2 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: sync_rule_no_name_project | ||
Parent: "00000000000000000000000000000000" | ||
Properties: | ||
Value: | ||
String: "This should be named `sync_rule_no_name_project` and have a child at `src/not_a_project`" | ||
id-3: | ||
Children: | ||
- id-4 | ||
ClassName: Folder | ||
Id: id-3 | ||
Metadata: | ||
ignoreUnknownInstances: false | ||
Name: src | ||
Parent: id-2 | ||
Properties: {} | ||
id-4: | ||
Children: [] | ||
ClassName: StringValue | ||
Id: id-4 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: not_a_project | ||
Parent: id-3 | ||
Properties: | ||
Value: | ||
String: "If this isn't named `not_a_project`, something has gone wrong!" | ||
messageCursor: 0 | ||
sessionId: id-1 |
13 changes: 13 additions & 0 deletions
13
rojo-test/serve-test-snapshots/end_to_end__tests__serve__sync_rule_no_name_project_info.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,13 @@ | ||
--- | ||
source: tests/tests/serve.rs | ||
assertion_line: 383 | ||
expression: redactions.redacted_yaml(info) | ||
--- | ||
expectedPlaceIds: ~ | ||
gameId: ~ | ||
placeId: ~ | ||
projectName: sync_rule_no_name_project | ||
protocolVersion: 4 | ||
rootInstanceId: id-2 | ||
serverVersion: "[server-version]" | ||
sessionId: id-1 |
17 changes: 17 additions & 0 deletions
17
rojo-test/serve-tests/sync_rule_no_name_project/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,17 @@ | ||
{ | ||
"tree": { | ||
"$className": "StringValue", | ||
"$properties": { | ||
"Value": "This should be named `sync_rule_no_name_project` and have a child at `src/not_a_project`" | ||
}, | ||
"src": { | ||
"$path": "src" | ||
} | ||
}, | ||
"syncRules": [ | ||
{ | ||
"use": "project", | ||
"pattern": "*.rojo" | ||
} | ||
] | ||
} |
8 changes: 8 additions & 0 deletions
8
rojo-test/serve-tests/sync_rule_no_name_project/src/not_a_project.rojo
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,8 @@ | ||
{ | ||
"tree": { | ||
"$className": "StringValue", | ||
"$properties": { | ||
"Value": "If this isn't named `not_a_project`, something has gone wrong!" | ||
} | ||
} | ||
} |
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
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
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
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
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
Oops, something went wrong.