mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
fix tests
This commit is contained in:
parent
6fdb39f9d3
commit
5ee2b329bf
@ -122,12 +122,12 @@ describe('AwsDeployFunction', () => {
|
||||
|
||||
awsDeployFunction.pkg = pkg;
|
||||
|
||||
const packageServiceStub = sinon
|
||||
.stub(pkg, 'packageService').returns(BbPromise.resolve());
|
||||
const packageFunctionStub = sinon
|
||||
.stub(pkg, 'packageFunction').returns(BbPromise.resolve());
|
||||
|
||||
return awsDeployFunction.zipFunction().then(() => {
|
||||
expect(packageServiceStub.calledOnce).to.be.equal(true);
|
||||
awsDeployFunction.pkg.packageService.restore();
|
||||
expect(packageFunctionStub.calledOnce).to.be.equal(true);
|
||||
awsDeployFunction.pkg.packageFunction.restore();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user