MCPcopy Create free account
hub / github.com/angular/angular / cleanNewLines

Function cleanNewLines

packages/compiler-cli/test/ngtsc/defer_spec.ts:18–20  ·  view source on GitHub ↗
(contents: string)

Source from the content-addressed store, hash-verified

16const testFiles = loadStandardTestFiles();
17
18function cleanNewLines(contents: string) {
19 return contents.replace(/\s*\n\s*/g, ' ');
20}
21
22runInEachFileSystem(() => {
23 describe('ngtsc @defer block', () => {

Callers 1

defer_spec.tsFile · 0.70

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected