diff --git a/test/extractLoader.test.js b/test/extractLoader.test.js
index 4bad1a9..0f48d4c 100644
--- a/test/extractLoader.test.js
+++ b/test/extractLoader.test.js
@@ -82,6 +82,28 @@ describe("extractLoader", () => {
/
/
);
}));
+ it("should extract the script.html as file, emit the referenced script and rewrite the url", () =>
+ compile({testModule: "script.html"}).then(() => {
+ const scriptHtml = path.resolve(__dirname, "dist/script-dist.html");
+ const scriptJs = path.resolve(__dirname, "dist/simple-dist.js");
+
+ expect(scriptHtml).to.be.a.file();
+ expect(scriptJs).to.be.a.file();
+ expect(scriptHtml).to.have.content.that.match(
+ /
+