Skip to content

Commit

Permalink
tests(new index.html): fix compat-app-script-attributes to look for t…
Browse files Browse the repository at this point in the history
…he right module name
  • Loading branch information
BlueCutOfficial committed May 16, 2024
1 parent 02514e3 commit be5f83e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/scenarios/compat-app-html-attributes-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ appScenarios

// <script ... src=".../vendor.js"> => <script ... src=".../vendor.js" data-original-filename="vendor.js">
indexHtml = indexHtml.replace('vendor.js">', 'vendor.js" data-original-filename="vendor.js">');
indexHtml = indexHtml.replace('app-template.js">', 'app-template.js" data-original-filename="app-template.js">');
indexHtml = indexHtml.replace('entrypoint" ', 'entrypoint" data-original-filename="entrypoint" ');

// <script ... => <script defer ...
indexHtml = indexHtml.replace(/<script /g, '<script defer ');
Expand Down Expand Up @@ -72,8 +72,8 @@ appScenarios
'has data-original-filename vendor.js'
);
expectFile('./index.html').matches(
'" data-original-filename="app-template.js" type="module">',
'has data-original-filename app-template.js'
'" data-original-filename="entrypoint" type="module">',
'has data-original-filename entrypoint'
);
});
});
Expand Down

0 comments on commit be5f83e

Please sign in to comment.