diff --git a/npm/webpack-preprocessor/test/unit/index.spec.js b/npm/webpack-preprocessor/test/unit/index.spec.js index c43332d4b98e..57a30d16cb3c 100644 --- a/npm/webpack-preprocessor/test/unit/index.spec.js +++ b/npm/webpack-preprocessor/test/unit/index.spec.js @@ -334,8 +334,10 @@ describe('webpack preprocessor', function () { it('it rejects with error when an err', function () { this.compilerApi.run.yields(this.err) + expect(preprocessor.__bundles()[this.file.filePath]).to.be.undefined return this.run().catch((err) => { + expect(preprocessor.__bundles()[this.file.filePath].deferreds).to.be.empty expect(err.stack).to.equal(this.err.stack) }) })