fix linting issues

This commit is contained in:
Eslam A. Hefnawy 2016-08-26 14:00:17 +09:00
parent d475b386a4
commit ae4f094bc7
4 changed files with 7 additions and 9 deletions

View File

@ -86,13 +86,16 @@ describe('AwsCompileScheduledEvents', () => {
.provider.compiledCloudFormationTemplate.Resources.FirstEventsRuleSchedule3.Type
).to.equal('AWS::Events::Rule');
expect(awsCompileScheduledEvents.serverless.service
.provider.compiledCloudFormationTemplate.Resources.FirstLambdaPermissionEventsRuleSchedule1.Type
.provider.compiledCloudFormationTemplate.Resources
.FirstLambdaPermissionEventsRuleSchedule1.Type
).to.equal('AWS::Lambda::Permission');
expect(awsCompileScheduledEvents.serverless.service
.provider.compiledCloudFormationTemplate.Resources.FirstLambdaPermissionEventsRuleSchedule2.Type
.provider.compiledCloudFormationTemplate.Resources
.FirstLambdaPermissionEventsRuleSchedule2.Type
).to.equal('AWS::Lambda::Permission');
expect(awsCompileScheduledEvents.serverless.service
.provider.compiledCloudFormationTemplate.Resources.FirstLambdaPermissionEventsRuleSchedule3.Type
.provider.compiledCloudFormationTemplate.Resources
.FirstLambdaPermissionEventsRuleSchedule3.Type
).to.equal('AWS::Lambda::Permission');
});

View File

@ -47,7 +47,7 @@ describe('AwsCompileFunctions', () => {
).to.deep.equal(IamRoleLambdaExecutionTemplate.IamRoleLambdaExecution);
});
it('should merge the IamPolicyLambdaExecution template into the CloudFormation template', () => {
it('should merge IamPolicyLambdaExecution template into the CloudFormation template', () => {
awsCompileFunctions.compileFunctions();
// we check for the type here because a deep equality check will error out due to

View File

@ -162,10 +162,6 @@ describe('createStack', () => {
it('should resolve if no deploy', () => {
awsDeploy.options.noDeploy = true;
const errorMock = {
message: 'does not exist',
};
const writeCreateTemplateToDiskStub = sinon
.stub(awsDeploy, 'writeCreateTemplateToDisk').returns(BbPromise.resolve());
const createStub = sinon

View File

@ -117,7 +117,6 @@ describe('#zipService()', () => {
const unzippedFileData = unzippedData.files;
// binary file is set with chmod of 777
console.log(unzippedFileData['bin/some-binary'])
expect(unzippedFileData['bin/some-binary'].unixPermissions)
.to.equal(Math.pow(2, 15) + 777);