Skip to content

Commit

Permalink
Fix tests for serde_json
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavo-shigueo committed Jul 5, 2024
1 parent 3ef7a0f commit 9c4ed84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts-rs/tests/integration/serde_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn using_serde_json() {
);
assert_eq!(
serde_json::Value::decl(),
"type JsonValue = number | string | Array<JsonValue> | { [key: string]: JsonValue };",
"type JsonValue = number | string | Array<JsonValue> | { [key in string]?: JsonValue };",
);

assert_eq!(
Expand All @@ -33,7 +33,7 @@ fn using_serde_json() {
num: number, \
map1: { [key in string]?: number }, \
map2: { [key in string]?: UsingSerdeJson }, \
map3: { [key in string]?: { [key: string]: number } }, \
map3: { [key in string]?: { [key in string]?: number } }, \
map4: { [key in string]?: number }, \
map5: { [key in string]?: JsonValue }, \
any: JsonValue, \
Expand All @@ -53,7 +53,7 @@ fn inlined_value() {
assert_eq!(
InlinedValue::decl(),
"type InlinedValue = { \
any: number | string | Array<JsonValue> | { [key: string]: JsonValue }, \
any: number | string | Array<JsonValue> | { [key in string]?: JsonValue }, \
};"
);
}
Expand Down

0 comments on commit 9c4ed84

Please sign in to comment.