diff --git a/packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts b/packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts index 85efeafb8..90eb25c72 100644 --- a/packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts +++ b/packages/compiler-dom/__tests__/transforms/stringifyStatic.spec.ts @@ -20,10 +20,7 @@ describe('stringify static html', () => { } function repeat(code: string, n: number): string { - return new Array(n) - .fill(0) - .map(() => code) - .join('') + return code.repeat(n) } test('should bail on non-eligible static trees', () => {