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