Skip to content

Commit

Permalink
fix: Fix tests related to operation doc header (#1231)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins authored Nov 22, 2023
1 parent 1732f96 commit a4998bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ extension EventStreamTestClientTypes.TestStream: ClientRuntime.MessageUnmarshall
val contents = getFileContents(context.manifest, "/Example/EventStreamTestClient.swift")
var expected = """
extension EventStreamTestClient: EventStreamTestClientProtocol {
/// Performs the `TestStreamOp` operation on the `TestService` service.
///
/// This operation is cool.
///
/// - Parameter TestStreamOpInput : [no documentation found]
Expand Down Expand Up @@ -239,7 +241,7 @@ extension EventStreamTestClient: EventStreamTestClientProtocol {
}
}
""".trimIndent()
"""
contents.shouldContainOnlyOnce(expected)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ class AWSQueryOperationStackTest {
val context = setupTests("awsquery/query-empty-input-output.smithy", "aws.protocoltests.query#AwsQuery")
val contents = getFileContents(context.manifest, "/Example/QueryProtocolClient.swift")
contents.shouldSyntacticSanityCheck()
val expectedContents =
"""
val expectedContents = """
extension QueryProtocolClient: QueryProtocolClientProtocol {
/// Performs the `NoInputAndOutput` operation on the `AwsQuery` service.
///
/// This is a very cool operation.
///
/// - Parameter NoInputAndOutputInput : [no documentation found]
Expand Down Expand Up @@ -57,7 +58,8 @@ extension QueryProtocolClient: QueryProtocolClientProtocol {
return result
}
}"""
}
"""
contents.shouldContainOnlyOnce(expectedContents)
}

Expand Down

0 comments on commit a4998bc

Please sign in to comment.