Skip to content

Commit 91720c6

Browse files
committed
Undo odd IDE code formatting
1 parent f2ed674 commit 91720c6

File tree

1 file changed

+31
-39
lines changed

1 file changed

+31
-39
lines changed

lib/deploy/events/apiGateway/deployment.test.js

Lines changed: 31 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -27,53 +27,45 @@ describe('#compileDeployment()', () => {
2727
});
2828

2929
it('should create a deployment resource', () => serverlessStepFunctions
30-
.compileDeployment()
31-
.then(() => {
30+
.compileDeployment().then(() => {
3231
const apiGatewayDeploymentLogicalId = Object
3332
.keys(serverlessStepFunctions.serverless.service.provider
3433
.compiledCloudFormationTemplate.Resources)[0];
3534

3635
expect(
3736
serverlessStepFunctions.serverless.service.provider.compiledCloudFormationTemplate
38-
.Resources[apiGatewayDeploymentLogicalId],
39-
)
40-
.to
41-
.deep
42-
.equal({
43-
Type: 'AWS::ApiGateway::Deployment',
44-
DependsOn: ['method-dependency1', 'method-dependency2'],
45-
Properties: {
46-
RestApiId: { Ref: serverlessStepFunctions.apiGatewayRestApiLogicalId },
47-
StageName: 'dev',
48-
},
49-
});
50-
}),
37+
.Resources[apiGatewayDeploymentLogicalId]
38+
).to.deep.equal({
39+
Type: 'AWS::ApiGateway::Deployment',
40+
DependsOn: ['method-dependency1', 'method-dependency2'],
41+
Properties: {
42+
RestApiId: { Ref: serverlessStepFunctions.apiGatewayRestApiLogicalId },
43+
StageName: 'dev',
44+
},
45+
});
46+
})
5147
);
5248

5349
it('should add service endpoint output', () =>
54-
serverlessStepFunctions.compileDeployment()
55-
.then(() => {
56-
expect(
57-
serverlessStepFunctions.serverless.service.provider.compiledCloudFormationTemplate
58-
.Outputs.ServiceEndpoint,
59-
)
60-
.to
61-
.deep
62-
.equal({
63-
Description: 'URL of the service endpoint',
64-
Value: {
65-
'Fn::Join': [
66-
'',
67-
[
68-
'https://',
69-
{ Ref: serverlessStepFunctions.apiGatewayRestApiLogicalId },
70-
'.execute-api.us-east-1.',
71-
{ Ref: 'AWS::URLSuffix' },
72-
'/dev',
73-
],
74-
],
75-
},
76-
});
77-
}),
50+
serverlessStepFunctions.compileDeployment().then(() => {
51+
expect(
52+
serverlessStepFunctions.serverless.service.provider.compiledCloudFormationTemplate
53+
.Outputs.ServiceEndpoint
54+
).to.deep.equal({
55+
Description: 'URL of the service endpoint',
56+
Value: {
57+
'Fn::Join': [
58+
'',
59+
[
60+
'https://',
61+
{ Ref: serverlessStepFunctions.apiGatewayRestApiLogicalId },
62+
'.execute-api.us-east-1.',
63+
{ Ref: 'AWS::URLSuffix' },
64+
'/dev',
65+
],
66+
],
67+
},
68+
});
69+
})
7870
);
7971
});

0 commit comments

Comments
 (0)