Skip to content

Commit

Permalink
Refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
mthenw committed Aug 14, 2019
1 parent f2f3c00 commit 896631d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/plugins/aws/deploy/lib/extendedValidate.test.js
Expand Up @@ -113,7 +113,7 @@ describe('extendedValidate', () => {
});
});

it('should use function package level generated artifact if functions is packaged individiually', () => {
it('should not throw error if individual packaging defined on a function level', () => {
awsDeploy.serverless.service.package.individually = false;
stateFileMock.service.functions = {
first: {
Expand All @@ -124,12 +124,7 @@ describe('extendedValidate', () => {
};
fileExistsSyncStub.returns(true);
readFileSyncStub.returns(stateFileMock);

return awsDeploy.extendedValidate().then(() => {
expect(fileExistsSyncStub.calledTwice).to.equal(true);
expect(readFileSyncStub.calledOnce).to.equal(true);
expect(fileExistsSyncStub.lastCall.args[0]).to.have.string('.serverless/first.zip');
});
return awsDeploy.extendedValidate();
});

it('should use function package level artifact when provided', () => {
Expand Down

0 comments on commit 896631d

Please sign in to comment.