Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit 0a6fd2c

Browse files
markgohofilipesilva
authored andcommitted
feat(@angular/pwa): add content for when javascript is not available
Fix linting error
1 parent bcc48f3 commit 0a6fd2c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/angular/pwa/pwa/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ function updateIndexFile(options: PwaOptions): Rule {
9191
.join('\n');
9292

9393
const bodyTagIndent = getIndent(closingBodyTagLine) + ' ';
94-
const itemsToAddToBody = '<noscript>Please enable Javascript to continue using this application.</noscript>'
94+
const itemsToAddToBody
95+
= '<noscript>Please enable Javascript to continue using this application.</noscript>';
9596

9697
const textToInsertIntoBody = bodyTagIndent + itemsToAddToBody;
9798

packages/angular/pwa/pwa/index_spec.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ describe('PWA Schematic', () => {
9393

9494
expect(content).toMatch(/<link rel="manifest" href="manifest.json">/);
9595
expect(content).toMatch(/<meta name="theme-color" content="#1976d2">/);
96-
expect(content).toMatch(/<noscript>Please enable Javascript to continue using this application.<\/noscript>/);
96+
expect(content)
97+
.toMatch(/<noscript>Please enable Javascript to continue using this application.<\/noscript>/);
9798
});
9899

99100
it('should update the build and test assets configuration', () => {

0 commit comments

Comments
 (0)