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

Function getSheetText

tests/testUtils.js:1–7  ·  view source on GitHub ↗
(sheet)

Source from the content-addressed store, hash-verified

1export const getSheetText = (sheet) => {
2 let allRules = '';
3 for (let i = 0; i < sheet.cssRules.length; i ++) {
4 allRules += sheet.cssRules[i].cssText + ' ';
5 }
6 return allRules;
7};

Callers 4

index_test.jsFile · 0.90
inject_test.jsFile · 0.90
assertStylesIncludeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected