Skip to content

Commit 48a1f1e

Browse files
committed
fix test
1 parent 74a500e commit 48a1f1e

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

smithy-typescript-codegen/src/test/java/software/amazon/smithy/typescript/codegen/CommandGeneratorTest.java

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,29 @@
1010
import software.amazon.smithy.model.Model;
1111
import software.amazon.smithy.model.node.Node;
1212

13-
@Disabled("WIP")
1413
public class CommandGeneratorTest {
1514
@Test
1615
public void addsCommandSpecificPlugins() {
17-
testCommmandCodegen("output-structure.smithy",
18-
" resolveMiddleware(\n" +
19-
" clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,\n" +
20-
" configuration: ExampleClientResolvedConfig,\n" +
21-
" options?: __HttpHandlerOptions\n" +
22-
" ): Handler<GetFooCommandInput, GetFooCommandOutput> {\n" +
23-
" this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));\n" +
24-
"\n" +
25-
" const stack = clientStack.concat(this.middlewareStack);");
16+
testCommmandCodegen(
17+
"output-structure.smithy",
18+
"getSerdePlugin(config, this.serialize, this.deserialize)"
19+
);
2620
}
2721

2822
@Test
2923
public void writesSerializer() {
30-
testCommmandCodegen("output-structure.smithy",
31-
" private serialize(\n" +
32-
" input: GetFooCommandInput,\n" +
33-
" context: __SerdeContext\n" +
34-
" ): Promise<__HttpRequest> {");
24+
testCommmandCodegen(
25+
"output-structure.smithy",
26+
"private serialize = "
27+
);
3528
}
3629

3730
@Test
3831
public void writesDeserializer() {
39-
testCommmandCodegen("output-structure.smithy",
40-
" private deserialize(\n" +
41-
" output: __HttpResponse,\n" +
42-
" context: __SerdeContext\n" +
43-
" ): Promise<GetFooCommandOutput> {");
32+
testCommmandCodegen(
33+
"output-structure.smithy",
34+
"private deserialize ="
35+
);
4436
}
4537

4638
private void testCommmandCodegen(String file, String expectedType) {

0 commit comments

Comments
 (0)