Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Nov 1, 2019
1 parent 67abbb4 commit 1465e49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/integration/defer-scripts/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ describe('Defer Scripts', () => {
for (const script of $('script').toArray()) {
const { defer, type, src } = script.attribs
// application/json doesn't need defer
if (type === 'application/json' || /polyfills$/.test(src)) {
// polyfills cannot be deferred or async'd
if (type === 'application/json' || src.includes('polyfills')) {
continue
}

Expand Down

0 comments on commit 1465e49

Please sign in to comment.