MCPcopy Create free account
hub / github.com/master-co/css / css

Function css

src/utils/test-css.ts:4–6  ·  view source on GitHub ↗
(cls: string)

Source from the content-addressed store, hash-verified

2import { render } from '../../src/render';
3
4export const css = (cls: string): string => {
5 return render(`<html class="${cls}">`, { StyleSheet }).css
6}
7
8export const testCSS = (cls: string, expected: string): void => {
9 expect(css(cls)).toBe(expected)

Callers 2

testCSSFunction · 0.85
testPropFunction · 0.85

Calls 1

renderFunction · 0.90

Tested by

no test coverage detected