mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 20:55:50 +00:00
Correct issue with default.project.json files with no name being named default after change (#917)
Co-authored-by: Kenneth Loeffler <kenloef@gmail.com>
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"tree": {
|
||||
"$className": "StringValue",
|
||||
"$properties": {
|
||||
"Value": "If this isn't named `not_a_project`, something has gone wrong!"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user