Skip to content

Commit 0fc7de3

Browse files
author
Frank Schmid
committed
Fixed unit tests
1 parent 340a40f commit 0fc7de3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,8 @@ describe('ServerlessWebpack', () => {
357357
.then(() => {
358358
expect(ServerlessWebpack.lib.webpack.isLocal).to.be.true;
359359
expect(slsw.prepareStepOfflineInvoke).to.have.been.calledOnce;
360-
expect(slsw.compile).to.have.been.calledOnce;
360+
expect(slsw.serverless.pluginManager.spawn).to.have.been.calledOnce;
361+
expect(slsw.serverless.pluginManager.spawn).to.have.been.calledWithExactly('webpack:compile');
361362
return null;
362363
});
363364
});

0 commit comments

Comments
 (0)