You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
400 B

import { describe, expect, it } from "vitest";
import { SceneStateMachine } from "@/scene/SceneStateMachine";
describe("SceneStateMachine", () => {
it("starts in idle state and supports transitioning", () => {
const machine = new SceneStateMachine();
expect(machine.getState()).toBe("idle");
machine.transitionTo("loading");
expect(machine.getState()).toBe("loading");
});
});