Skip to content

Commit

Permalink
chore(tests): fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfonseca committed Sep 2, 2022
1 parent 315dde3 commit e127b2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generate/resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ var _ = Describe("Resource", func() {

resource := &rds.DBCluster{
DatabaseName: cloudformation.String("MyDatabase"),
Engine: "mysql",
Engine: cloudformation.String("mysql"),
}
resource.AWSCloudFormationCondition = "MyCondition"

Expand Down
4 changes: 2 additions & 2 deletions goformation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ var _ = Describe("Goformation", func() {
})

It("should have the correct value for DefinitionBody", func() {
Expect(*api3.DefinitionBody).To(Equal("{\n \"DefinitionKey\": \"test-definition-value\"\n}\n"))
Expect(api3.DefinitionBody).To(Equal("{\n \"DefinitionKey\": \"test-definition-value\"\n}\n"))
})

api4, err := template.GetServerlessApiWithName("ServerlessApiWithDefinitionBodyAsYAML")
Expand All @@ -736,7 +736,7 @@ var _ = Describe("Goformation", func() {
expected = map[string]interface{}{
"DefinitionKey": "test-definition-value",
}
Expect(*api4.DefinitionBody).To(Equal(expected))
Expect(api4.DefinitionBody).To(Equal(expected))
})

api5, err := template.GetServerlessApiWithName("ServerlessApiWithAccessLogSettingAsYAML")
Expand Down

0 comments on commit e127b2b

Please sign in to comment.