MCPcopy
hub / github.com/tailwindlabs/tailwindcss / test

Function test

packages/tailwindcss/src/test-utils/custom-serializer.ts:10–12  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

8
9export default {
10 test(val) {
11 return typeof val === 'string' && val.match(HIGH_PRECISION_COLOR_FUNCTION) !== null
12 },
13 serialize(val, config, indentation, depth, refs, printer) {
14 if (typeof val !== 'string') {
15 throw new Error('This was already tested in the test() callback')

Callers 15

ui.spec.tsFile · 0.90
ui.spec.tsFile · 0.90
urls.test.tsFile · 0.50
important.test.tsFile · 0.50
index.test.tsFile · 0.50
variants.test.tsFile · 0.50
sort.test.tsFile · 0.50
prefix.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected