deno.land / x / ruck@v5.0.0 / routePlanForContentWithCss.test.mjs

routePlanForContentWithCss.test.mjs
// @ts-check
import { assertThrows } from "std/testing/asserts.ts";
import HeadManager from "./HeadManager.mjs";import routePlanForContentWithCss from "./routePlanForContentWithCss.mjs";
Deno.test("`routePlanForContentWithCss` with argument 1 `routeContentWithCss` not an object or promise.", () => { assertThrows( () => { routePlanForContentWithCss( // @ts-expect-error Testing invalid. true, new HeadManager(), true, ); }, TypeError, "Argument 1 `routeContentWithCss` must be an object or promise.", );});
Deno.test("`routePlanForContentWithCss` with argument 2 `headManager` not a `HeadManager` instance.", () => { assertThrows( () => { routePlanForContentWithCss( { content: null, css: new Set(["/"]), }, // @ts-expect-error Testing invalid. true, true, ); }, TypeError, "Argument 2 `headManager` must be a `HeadManager` instance.", );});
Deno.test("`routePlanForContentWithCss` with argument 3 `isInitialRoute` not a boolean.", () => { assertThrows( () => { routePlanForContentWithCss( { content: null, css: new Set(["/"]), }, new HeadManager(), // @ts-expect-error Testing invalid. null, ); }, TypeError, "Argument 3 `isInitialRoute` must be a boolean.", );});
ruck
Ruck is an open source buildless React web application framework for Deno.
GitHub Stars
74
Go to latest

Version Info

Tagged at
a month ago

External Dependencies