Skip to content

gitflarePublicPartly agent-ready40

sketch-rush

Multiplayer draw-and-guess game on Cloudflare Workers, Durable Objects and D1.

main
Add the Apache-2.0 licencedbe1e99
JavaScript10 lines598 B
import test from "node:test";import assert from "node:assert";import { readFileSync } from "node:fs";const app = readFileSync(new URL("../public/app.js", import.meta.url), "utf8");const css = readFileSync(new URL("../public/style.css", import.meta.url), "utf8");test("cursor wired", () => assert.match(app, /setCursor\(/));test("paper css", () => assert.match(css, /#board\{border:2px solid[^}]*border-radius:6px/));test("celebrations", () => { assert.match(app, /fx\("correct"\)/); assert.match(app, /fx\("confetti"\)/); });test("no console", () => assert.doesNotMatch(app, /console\./));