feat: initial repo scaffolding
Node.js CI / Lint and Test (push) Successful in 37s

Port in some older solutions I've written just to
get the structure established and in place.
This commit is contained in:
2025-11-19 15:35:26 -08:00
parent 5e987c0aae
commit 1f44f2ddd9
14 changed files with 4540 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
/**
* @copyright NHCarrigan
* @license Naomi's Public License
* @author Naomi Carrigan
*/
import { describe, it, expect } from "vitest";
import { mineColor } from "./main.js";
describe("mineColor", () => {
it("should return white if the square is white", () => {
expect(mineColor("a", 8)).toBe("white");
expect(mineColor("f", 5)).toBe("white");
});
it("should return black if the square is black", () => {
expect(mineColor("b", 2)).toBe("black");
});
it("should handle empty strings", () => {
expect(mineColor("", 1)).toBe("white");
});
});