diff --git a/src/file/styles/external-styles-factory.spec.ts b/src/file/styles/external-styles-factory.spec.ts index 4db0f3199e..2ddc849ae8 100644 --- a/src/file/styles/external-styles-factory.spec.ts +++ b/src/file/styles/external-styles-factory.spec.ts @@ -153,6 +153,12 @@ describe("External styles factory", () => { }); }); + it("should throw when style element isn't found", () => { + expect(() => new ExternalStylesFactory().newInstance(``)).to.throw( + "can not find styles element", + ); + }); + it("should parse styles elements", () => { // tslint:disable-next-line:no-any const importedStyle = new ExternalStylesFactory().newInstance(externalStyles) as any;