Skip to content

Commit 7cb9c43

Browse files
fix: Lint failures in tests
1 parent bc88ad9 commit 7cb9c43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/angular/build/src/utils/index-file/augment-index-html_spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,9 +468,9 @@ describe('augment-index-html', () => {
468468

469469
const match = content.match(/<script type="importmap">([^<]+)<\/script>/);
470470
expect(match).withContext('importmap script tag missing').not.toBeNull();
471-
expect(match![1]).toContain('lazy\\u003cchunk.js');
472-
expect(match![1]).not.toContain('lazy<chunk.js');
473-
expect(JSON.parse(match![1])).toEqual({
471+
expect(match?.[1]).toContain('lazy\\u003cchunk.js');
472+
expect(match?.[1]).not.toContain('lazy<chunk.js');
473+
expect(JSON.parse(match?.[1] ?? '{}')).toEqual({
474474
integrity: { 'lazy<chunk.js': 'sha384-abc' },
475475
});
476476
});

0 commit comments

Comments
 (0)