MCPcopy
hub / github.com/Khan/aphrodite / assertStylesInclude

Function assertStylesInclude

tests/inject_test.js:383–388  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

381 });
382
383 function assertStylesInclude(str) {
384 const styleTags = global.document.getElementsByTagName("style");
385 const styles = getSheetText(styleTags[0].sheet);
386
387 assert.include(styles, str);
388 }
389
390 describe('fontFamily', () => {
391 it('leaves plain strings alone', () => {

Callers 1

inject_test.jsFile · 0.85

Calls 1

getSheetTextFunction · 0.90

Tested by

no test coverage detected