Skip to content

Commit

Permalink
Change tests to expect type instead of interface
Browse files Browse the repository at this point in the history
  • Loading branch information
escritorio-gustavo authored Jan 25, 2024
1 parent 457addb commit aecb031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ts-rs/tests/hashmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn hashmap() {

assert_eq!(
Hashes::decl(),
"interface Hashes { map: Record<string, string>, set: Array<string>, }"
"type Hashes = { map: Record<string, string>, set: Array<string>, }"
)
}

Expand All @@ -32,6 +32,6 @@ fn hashmap_with_custom_hasher() {

assert_eq!(
Hashes::decl(),
"interface Hashes { map: Record<string, string>, set: Array<string>, }"
"type Hashes = { map: Record<string, string>, set: Array<string>, }"
)
}

0 comments on commit aecb031

Please sign in to comment.