Skip to content

Commit e43ff44

Browse files
authored
test(codegen): update codegen unit tests (#7525)
1 parent b20a25e commit e43ff44

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codegen/smithy-aws-typescript-codegen/src/test/java/software/amazon/smithy/aws/typescript/codegen/AwsServiceIdIntegrationTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public void testFirstNotCapitalizedServiceId() {
4646
Shape service = model.expectShape((ShapeId.from("smithy.example#OriginalName")));
4747
AwsServiceIdIntegration integration = new AwsServiceIdIntegration();
4848
TypeScriptSettings settings = new TypeScriptSettings();
49+
settings.setService(ShapeId.from("smithy#Placeholder"));
4950
SymbolProvider provider = TypeScriptSettings.ArtifactType.CLIENT.createSymbolProvider(model, settings);
5051
SymbolProvider decorated = integration.decorateSymbolProvider(model, settings, provider);
5152
Symbol symbol = decorated.toSymbol(service);
@@ -66,6 +67,7 @@ public void testRestNotCapitalizedServiceId() {
6667
Shape service = model.expectShape((ShapeId.from("smithy.example#OriginalName")));
6768
AwsServiceIdIntegration integration = new AwsServiceIdIntegration();
6869
TypeScriptSettings settings = new TypeScriptSettings();
70+
settings.setService(ShapeId.from("smithy#Placeholder"));
6971
SymbolProvider provider = TypeScriptSettings.ArtifactType.CLIENT.createSymbolProvider(model, settings);
7072
SymbolProvider decorated = integration.decorateSymbolProvider(model, settings, provider);
7173
Symbol symbol = decorated.toSymbol(service);

0 commit comments

Comments
 (0)