mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix linting issues
This commit is contained in:
parent
d475b386a4
commit
ae4f094bc7
@ -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');
|
||||
});
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user