From 3bdf81b3fed3cc7a2a6d5c10186d4506777d68da Mon Sep 17 00:00:00 2001 From: Justin Young Date: Sun, 16 Jun 2024 01:12:29 -0400 Subject: [PATCH] updates --- src/ui.ts | 5 +++-- test/firstTest.test.ts | 14 -------------- 2 files changed, 3 insertions(+), 16 deletions(-) delete mode 100644 test/firstTest.test.ts diff --git a/src/ui.ts b/src/ui.ts index 1656dc7..844138f 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -6,14 +6,15 @@ export const bluey = new Rectangle({ width: 16, height: 16, color: Color.fromRGB export const whitey = new Rectangle({ width: 16, height: 16, color: Color.fromRGB(255, 255, 255, 1) }); export const model = { - //eslint-disable-next-line @typescript-eslint/no-empty-function resetSim: (_e: any, m: any) => { + // eslint-disable-line @typescript-eslint/no-explicit-any m.tiles = Array(1296).fill(0); getNewNoiseField(); drawTilemap(); }, - //eslint-disable-next-line @typescript-eslint/no-empty-function + runSim: (_e: any, m: any) => { + // eslint-disable-line @typescript-eslint/no-explicit-any m.tiles = applyCellularAutomataRules(m.tiles, 36, 36); redrawTilemap(m.tiles, tmap, game); }, diff --git a/test/firstTest.test.ts b/test/firstTest.test.ts deleted file mode 100644 index 1a4f9f2..0000000 --- a/test/firstTest.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { assert, describe, it } from "vitest"; -import { myTestedComponent } from "../src/myTestedComponent"; // Replace with the correct path to your function - -describe("My Function", () => { - it("should return the correct result", () => { - const input = "Hello World"; - const expectedResult = { - result: 3, - echo: input, - }; - const actualResult = myTestedComponent(1, 2, input); - assert.deepStrictEqual(actualResult, expectedResult); - }); -});