diff --git a/src/html/static-asset-links.js b/src/html/static-asset-links.js index f0fad749e..8e9e265bc 100644 --- a/src/html/static-asset-links.js +++ b/src/html/static-asset-links.js @@ -22,7 +22,7 @@ function scripts() { const src = new Url(node.properties.src); if (src.host === '' && src.query === '' && src.pathname) { // eslint-disable-next-line no-param-reassign - node.properties.src = ``; + node.properties.src = ``; } } }); @@ -41,7 +41,7 @@ function links() { const href = new Url(node.properties.href); if (href.host === '' && href.query === '' && href.pathname) { // eslint-disable-next-line no-param-reassign - node.properties.href = ``; + node.properties.href = ``; } } }); diff --git a/test/testRewriteStatic.js b/test/testRewriteStatic.js index a08f1e824..b2617a4de 100644 --- a/test/testRewriteStatic.js +++ b/test/testRewriteStatic.js @@ -96,8 +96,8 @@ describe('Integration Test Static Asset Rewriting', () => { assert.equal(res.response.body, `
Hello World
@@ -148,7 +148,7 @@ describe('Test Static Asset Rewriting', () => { Just normal things `), `