diff --git a/lib/plugins/aws/deploy/lib/uploadArtifacts.test.js b/lib/plugins/aws/deploy/lib/uploadArtifacts.test.js index 5d25bc71c..8c3f0eb70 100644 --- a/lib/plugins/aws/deploy/lib/uploadArtifacts.test.js +++ b/lib/plugins/aws/deploy/lib/uploadArtifacts.test.js @@ -230,7 +230,7 @@ describe('uploadArtifacts', () => { }); }); - describe.only('#uploadFunctions()', () => { + describe('#uploadFunctions()', () => { beforeEach(() => { sinon.stub(fs, 'statSync').returns({ size: 1024 }); }); @@ -253,16 +253,17 @@ describe('uploadArtifacts', () => { }); it('should upload a single .zip file to the S3 bucket when not packaging individually', () => { - awsDeploy.serverless.config.servicePath = 'some/path'; - awsDeploy.serverless.service.service = 'new-service'; awsDeploy.serverless.service.functions = { first: { - handler: 'first-handler', + package: { + artifact: 'artifact.zip', + }, }, second: { - handler: 'second-handler', + package: { + artifact: 'artifact.zip', + }, }, - }; const uploadZipFileStub = sinon @@ -270,8 +271,7 @@ describe('uploadArtifacts', () => { return awsDeploy.uploadFunctions().then(() => { expect(uploadZipFileStub.calledOnce).to.be.equal(true); - expect(uploadZipFileStub.args[0][0]) - .to.be.equal(`${awsDeploy.serverless.service.service}.zip`); + expect(uploadZipFileStub.args[0][0]).to.be.equal('artifact.zip'); awsDeploy.uploadZipFile.restore(); }); });