Update tests to include player movement properties
This commit is contained in:
@@ -397,6 +397,11 @@ describe("buildRuntimeSceneFromDocument", () => {
|
|||||||
},
|
},
|
||||||
yawDegrees: 90,
|
yawDegrees: 90,
|
||||||
navigationMode: "firstPerson",
|
navigationMode: "firstPerson",
|
||||||
|
movement: {
|
||||||
|
templateKind: "default",
|
||||||
|
moveSpeed: DEFAULT_PLAYER_START_MOVE_SPEED,
|
||||||
|
capabilities: DEFAULT_PLAYER_START_MOVEMENT_CAPABILITIES
|
||||||
|
},
|
||||||
inputBindings: playerStart.inputBindings,
|
inputBindings: playerStart.inputBindings,
|
||||||
collider: {
|
collider: {
|
||||||
mode: "box",
|
mode: "box",
|
||||||
@@ -566,6 +571,11 @@ describe("buildRuntimeSceneFromDocument", () => {
|
|||||||
},
|
},
|
||||||
yawDegrees: 90,
|
yawDegrees: 90,
|
||||||
navigationMode: "firstPerson",
|
navigationMode: "firstPerson",
|
||||||
|
movement: {
|
||||||
|
templateKind: "default",
|
||||||
|
moveSpeed: DEFAULT_PLAYER_START_MOVE_SPEED,
|
||||||
|
capabilities: DEFAULT_PLAYER_START_MOVEMENT_CAPABILITIES
|
||||||
|
},
|
||||||
inputBindings: playerStart.inputBindings,
|
inputBindings: playerStart.inputBindings,
|
||||||
collider: {
|
collider: {
|
||||||
mode: "box",
|
mode: "box",
|
||||||
@@ -586,6 +596,11 @@ describe("buildRuntimeSceneFromDocument", () => {
|
|||||||
z: 0.7
|
z: 0.7
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
expect(runtimeScene.playerMovement).toEqual({
|
||||||
|
templateKind: "default",
|
||||||
|
moveSpeed: DEFAULT_PLAYER_START_MOVE_SPEED,
|
||||||
|
capabilities: DEFAULT_PLAYER_START_MOVEMENT_CAPABILITIES
|
||||||
|
});
|
||||||
expect(runtimeScene.playerInputBindings).toEqual(playerStart.inputBindings);
|
expect(runtimeScene.playerInputBindings).toEqual(playerStart.inputBindings);
|
||||||
expect(runtimeScene.navigationMode).toBe("firstPerson");
|
expect(runtimeScene.navigationMode).toBe("firstPerson");
|
||||||
expect(runtimeScene.spawn).toEqual({
|
expect(runtimeScene.spawn).toEqual({
|
||||||
@@ -629,6 +644,11 @@ describe("buildRuntimeSceneFromDocument", () => {
|
|||||||
height: 1.8,
|
height: 1.8,
|
||||||
eyeHeight: 1.6
|
eyeHeight: 1.6
|
||||||
});
|
});
|
||||||
|
expect(runtimeScene.playerMovement).toEqual({
|
||||||
|
templateKind: "default",
|
||||||
|
moveSpeed: DEFAULT_PLAYER_START_MOVE_SPEED,
|
||||||
|
capabilities: DEFAULT_PLAYER_START_MOVEMENT_CAPABILITIES
|
||||||
|
});
|
||||||
expect(runtimeScene.playerInputBindings).toEqual(
|
expect(runtimeScene.playerInputBindings).toEqual(
|
||||||
createPlayerStartInputBindings()
|
createPlayerStartInputBindings()
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user