Move updateAssets call in runtime-host.test.ts

This commit is contained in:
2026-04-14 17:21:19 +02:00
parent 319370df79
commit 1c8cd945ac

View File

@@ -154,14 +154,6 @@ describe("RuntimeHost", () => {
const host = new RuntimeHost({
enableRendering: false
});
host.updateAssets(
document.assets,
{
[asset.id]: loadedAsset
},
{},
{}
);
host.loadScene(runtimeScene);
const disableEffect = createSetLightEnabledControlEffect({
@@ -316,6 +308,14 @@ describe("RuntimeHost", () => {
const host = new RuntimeHost({
enableRendering: false
});
host.updateAssets(
document.assets,
{
[asset.id]: loadedAsset
},
{},
{}
);
host.loadScene(runtimeScene);
const hostInternals = host as unknown as {