Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
16
const
testFiles = loadStandardTestFiles();
17
18
function
cleanNewLines(contents: string) {
19
return
contents.replace(/\s*\n\s*/g,
' '
);
20
}
21
22
runInEachFileSystem(() => {
23
describe(
'ngtsc @defer block'
, () => {
Callers
1
defer_spec.ts
File · 0.70
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected