MCPcopy Index your code
hub / github.com/nuxt-modules/tailwindcss / getStyles

Function getStyles

test/sink.test.ts:28–32  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

26
27 test('check homepage css', async () => {
28 const getStyles = (html: string) => {
29 const searchText = '<style>/*! tailwindcss'
30 const _styles = html.slice(html.indexOf(searchText) + '<style>'.length)
31 return _styles.slice(0, _styles.indexOf('</style>'))
32 }
33
34 const builtHtml = readFileSync(`${fixturePath}.output/public/index.html`, 'utf-8')
35 const builtStyles = getStyles(builtHtml)

Callers 1

sink.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected