Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Suter committed Sep 26, 2023
1 parent 2d9cf9f commit c6c0340
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public async Task When_dictionary_value_is_object_then_typescript_has_any_value(
var code = generator.GenerateFile("MyClass");

//// Assert
Assert.Contains("extensions: { [key: string]: any; };", code);
Assert.Contains("extensions: { [key: string]: any; } | undefined;", code);
Assert.DoesNotContain("extensions?: { [key: string]: Iany; } | null;", code);
Assert.DoesNotContain("this.extensions[key] = item && !(<any>item).toJSON ? new any(item) : <any>item;", code);
}
Expand Down

0 comments on commit c6c0340

Please sign in to comment.