import { expect, test } from "bun:test" import { combineStylesheets } from "~/lib/one-stylesheet" const css = (name: string) => `` const js = `` test("a page's stylesheets become one link, with no disabled link in the HTML", () => { const html = combineStylesheets(`${css("a")}${js}${css("b")}${css("c")}`) expect(html).toBe( `` + `${js}${css("c")}`, ) expect(html).not.toMatch(/]*disabled/) }) test("the script adds each original link, disabled, for the chunk loader", () => { const html = combineStylesheets(`${css("a")}${css("b")}`) const script = html.match(/