Skip to content

Commit 944d6a9

Browse files
committed
chore(go/restapi-lambda): Format tests
1 parent e2b4bb9 commit 944d6a9

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
package main
22

33
import (
4-
"testing"
4+
"testing"
55

6-
"github.com/aws/aws-cdk-go/awscdk/v2"
7-
"github.com/aws/aws-cdk-go/awscdk/v2/assertions"
8-
"github.com/aws/jsii-runtime-go"
6+
"github.com/aws/aws-cdk-go/awscdk/v2"
7+
"github.com/aws/aws-cdk-go/awscdk/v2/assertions"
8+
"github.com/aws/jsii-runtime-go"
99
)
1010

1111
func TestAppServerlessCdkGoStack(t *testing.T) {
12-
// GIVEN
13-
app := awscdk.NewApp(nil)
12+
// GIVEN
13+
app := awscdk.NewApp(nil)
1414

15-
// WHEN
16-
stack := NewAppServerlessCdkGoStack(app, "MyStack", nil)
15+
// WHEN
16+
stack := NewAppServerlessCdkGoStack(app, "MyStack", nil)
1717

18-
// THEN
19-
template := assertions.Template_FromStack(stack, nil)
18+
// THEN
19+
template := assertions.Template_FromStack(stack, nil)
2020

21-
template.HasResourceProperties(jsii.String("AWS::Lambda::Function"), map[string]interface{}{
22-
"Runtime": "provided.al2",
23-
})
21+
template.HasResourceProperties(jsii.String("AWS::Lambda::Function"), map[string]interface{}{
22+
"Runtime": "provided.al2",
23+
})
2424

25-
template.HasResourceProperties(jsii.String("AWS::ApiGateway::RestApi"), map[string]interface{}{
26-
"Name": "myGoApi",
27-
})
25+
template.HasResourceProperties(jsii.String("AWS::ApiGateway::RestApi"), map[string]interface{}{
26+
"Name": "myGoApi",
27+
})
2828

29-
template.HasResourceProperties(jsii.String("AWS::ApiGateway::Resource"), map[string]interface{}{
30-
"PathPart": "hello-world",
31-
})
29+
template.HasResourceProperties(jsii.String("AWS::ApiGateway::Resource"), map[string]interface{}{
30+
"PathPart": "hello-world",
31+
})
3232
}

0 commit comments

Comments
 (0)