Skip to content

Commit

Permalink
refactor(test): Enforce camelCase to a test var
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdmharvey committed Mar 10, 2023
1 parent 1b0fd68 commit 817a36e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ var _ = Describe("Namespace integration tests", func() {
}
}`

expectedDeleteNamespacerequest := `{
expectedDeleteNamespaceRequest := `{
"query": "\nmutation($id: UUID!) {\n deleteNamespaceAndRelatedOrbs(namespaceId: $id) {\n deleted\n errors {\n type\n message\n }\n }\n}\n",
"variables": {
"id": "f13a9e13-538c-435c-8f61-78596661acd6"
Expand All @@ -270,7 +270,7 @@ var _ = Describe("Namespace integration tests", func() {

tempSettings.AppendPostHandler(token, clitest.MockRequestResponse{
Status: http.StatusOK,
Request: expectedDeleteNamespacerequest,
Request: expectedDeleteNamespaceRequest,
Response: gqlDeleteNamespaceResponse})

session, err := gexec.Start(command, GinkgoWriter, GinkgoWriter)
Expand Down Expand Up @@ -324,7 +324,7 @@ var _ = Describe("Namespace integration tests", func() {
}
}`

expectedDeleteNamespacerequest := `{
expectedDeleteNamespaceRequest := `{
"query": "\nmutation($id: UUID!) {\n deleteNamespaceAndRelatedOrbs(namespaceId: $id) {\n deleted\n errors {\n type\n message\n }\n }\n}\n",
"variables": {
"id": "f13a9e13-538c-435c-8f61-78596661acd6"
Expand All @@ -343,7 +343,7 @@ var _ = Describe("Namespace integration tests", func() {

tempSettings.AppendPostHandler(token, clitest.MockRequestResponse{
Status: http.StatusOK,
Request: expectedDeleteNamespacerequest,
Request: expectedDeleteNamespaceRequest,
Response: gqlDeleteNamespaceResponse})

session, err := gexec.Start(command, GinkgoWriter, GinkgoWriter)
Expand Down

0 comments on commit 817a36e

Please sign in to comment.