Update test for invalid navigation mode in scene document validation
This commit is contained in:
@@ -115,7 +115,7 @@ describe("validateSceneDocument", () => {
|
|||||||
z: 0
|
z: 0
|
||||||
},
|
},
|
||||||
yawDegrees: Number.NaN,
|
yawDegrees: Number.NaN,
|
||||||
navigationMode: "firstPerson",
|
navigationMode: "orbitVisitor" as unknown as "firstPerson",
|
||||||
collider: {
|
collider: {
|
||||||
mode: "capsule",
|
mode: "capsule",
|
||||||
eyeHeight: 3,
|
eyeHeight: 3,
|
||||||
@@ -139,6 +139,9 @@ describe("validateSceneDocument", () => {
|
|||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
code: "invalid-player-start-yaw"
|
code: "invalid-player-start-yaw"
|
||||||
}),
|
}),
|
||||||
|
expect.objectContaining({
|
||||||
|
code: "invalid-player-start-navigation-mode"
|
||||||
|
}),
|
||||||
expect.objectContaining({
|
expect.objectContaining({
|
||||||
code: "invalid-player-start-capsule-proportions"
|
code: "invalid-player-start-capsule-proportions"
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user