From 5ee2b329bf8228c92ee8a7aef53f8a03f024ffdb Mon Sep 17 00:00:00 2001 From: John McKim Date: Wed, 24 Aug 2016 06:27:40 +1000 Subject: [PATCH] fix tests --- lib/plugins/aws/deployFunction/tests/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/plugins/aws/deployFunction/tests/index.js b/lib/plugins/aws/deployFunction/tests/index.js index 97be56524..08bafcaf0 100644 --- a/lib/plugins/aws/deployFunction/tests/index.js +++ b/lib/plugins/aws/deployFunction/tests/index.js @@ -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(); }); }); });