Skip to content

Commit b71a889

Browse files
authored
refactor(compiler-dom): use String's built-in repeat method (#6700)
1 parent 3445356 commit b71a889

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ describe('stringify static html', () => {
2020
}
2121

2222
function repeat(code: string, n: number): string {
23-
return new Array(n)
24-
.fill(0)
25-
.map(() => code)
26-
.join('')
23+
return code.repeat(n)
2724
}
2825

2926
test('should bail on non-eligible static trees', () => {

0 commit comments

Comments
 (0)