Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
import { describe, expect, test } from "vitest";
import { defaultConfig } from "../src/engine/defaults";
import { exampleA } from "./fixtures";
describe("defaultConfig", () => {
test("is the worked example rack", () => {
expect(defaultConfig()).toEqual(exampleA);
});
test("returns a fresh object every time", () => {
const a = defaultConfig();
a.rows[0]!.columns.push(9);
expect(defaultConfig()).toEqual(exampleA);
});
});
4121c9fb7This file is pinned to the selected release. Download the original to open it in your design tool.