/* * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ import { describe, it, expect } from "vitest" import { InkProcessorEngine } from './engine' import storyText from "./test/test-story.ink?raw" import { Compiler } from "inkjs" import { createEmptyVisualInkState } from "./data/visible-state" describe("Engine creation", () => { it("successfully creates an engine", () => { const story = new Compiler(storyText).Compile() const engine = new InkProcessorEngine(story) expect(engine.visualState).toEqual(createEmptyVisualInkState()) }) })