MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / loadTextFixture

Function loadTextFixture

tests/acceptance/help-test.js:383–388  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

381});
382
383function loadTextFixture(path) {
384 let content = fs.readFileSync(path, { encoding: 'utf8' });
385 let decoded = decodeUnicode(content);
386 let processed = processHelpString(decoded);
387 return processed.replace(/\n/g, EOL);
388}
389
390function decodeUnicode(str) {
391 return str.replace(/\\u([\d\w]{4})/gi, function (match, grp) {

Callers 1

help-test.jsFile · 0.85

Calls 1

decodeUnicodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…