auto-git:
[change] tests/domain/runtime-interaction-system.test.ts
This commit is contained in:
@@ -385,6 +385,10 @@ describe("RuntimeInteractionSystem", () => {
|
|||||||
runtimeScene,
|
runtimeScene,
|
||||||
createDispatcher({
|
createDispatcher({
|
||||||
dispatchControlEffect: (effect, link) => {
|
dispatchControlEffect: (effect, link) => {
|
||||||
|
if (effect.target.kind !== "entity") {
|
||||||
|
throw new Error("Expected a camera rig entity control target.");
|
||||||
|
}
|
||||||
|
|
||||||
dispatches.push(`${link.id}:${effect.type}:${effect.target.entityId}`);
|
dispatches.push(`${link.id}:${effect.type}:${effect.target.entityId}`);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -399,6 +403,10 @@ describe("RuntimeInteractionSystem", () => {
|
|||||||
runtimeScene,
|
runtimeScene,
|
||||||
createDispatcher({
|
createDispatcher({
|
||||||
dispatchControlEffect: (effect, link) => {
|
dispatchControlEffect: (effect, link) => {
|
||||||
|
if (effect.target.kind !== "entity") {
|
||||||
|
throw new Error("Expected a camera rig entity control target.");
|
||||||
|
}
|
||||||
|
|
||||||
dispatches.push(`${link.id}:${effect.type}:${effect.target.entityId}`);
|
dispatches.push(`${link.id}:${effect.type}:${effect.target.entityId}`);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -430,6 +438,10 @@ describe("RuntimeInteractionSystem", () => {
|
|||||||
runtimeScene,
|
runtimeScene,
|
||||||
createDispatcher({
|
createDispatcher({
|
||||||
dispatchControlEffect: (effect, link) => {
|
dispatchControlEffect: (effect, link) => {
|
||||||
|
if (effect.target.kind !== "entity") {
|
||||||
|
throw new Error("Expected a camera rig entity control target.");
|
||||||
|
}
|
||||||
|
|
||||||
dispatches.push(`${link.id}:${effect.type}:${effect.target.entityId}`);
|
dispatches.push(`${link.id}:${effect.type}:${effect.target.entityId}`);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user