diff --git a/aio/src/app/embedded/code/code.component.spec.ts b/aio/src/app/embedded/code/code.component.spec.ts index 94b8ad3ea0..f185be9768 100644 --- a/aio/src/app/embedded/code/code.component.spec.ts +++ b/aio/src/app/embedded/code/code.component.spec.ts @@ -107,10 +107,10 @@ describe('CodeComponent', () => { it('should remove common indentation from the code before rendering', () => { hostComponent.linenums = false; - hostComponent.code = ' abc\n def\n ghi\n\n jkl\n'; + hostComponent.code = ' abc\n let x = text.split(\'\\n\');\n ghi\n\n jkl\n'; fixture.detectChanges(); const codeContent = codeComponentDe.nativeElement.querySelector('code').innerText; - expect(codeContent).toEqual('abc\n def\nghi\n\njkl'); + expect(codeContent).toEqual('abc\n let x = text.split(\'\\n\');\nghi\n\njkl'); }); it('should trim whitespace from the code before rendering', () => {