MCPcopy Create free account
hub / github.com/cssstats/cssstats / fixture

Function fixture

packages/cssstats/test/util.js:7–12  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

5const cssstats = require('..')
6
7function fixture(name) {
8 return fs
9 .readFileSync(path.join(__dirname, 'fixtures/' + name + '.css'), 'utf8')
10 .toString()
11 .trim()
12}
13
14module.exports.fixture = fixture
15module.exports.getStatsForFixture = (fixtureName, options = {}) => {

Callers 2

util.jsFile · 0.85
plugin-test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…