Skip to content

Commit

Permalink
update tests with new behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
angryziber committed Feb 15, 2025
1 parent d3ecbd9 commit 53edd7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json/test/TSGeneratorTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ class TSGeneratorTest {
"interface Person {hello: SomeEnum; name: string}")

expect(ts.render(SomeData::class)).toEqual( // language=TypeScript
"interface SomeData {age: number; any: any; birthDate?: `$tsDate`; bytes: Array<number>; field: keyof Person; id: MyId<SomeData>; " +
"list: Array<SomeData>; map: Record<`$tsTime`, Array<SomeData>>; name: string; other?: SomeData; status: SomeDataStatus; hello: SomeEnum}")
"interface SomeData {age: number; any: any; birthDate?: LocalDate; bytes: Array<number>; field: keyof Person; id: MyId<SomeData>; " +
"list: Array<SomeData>; map: Record<LocalTime, Array<SomeData>>; name: string; other?: SomeData; status: SomeDataStatus; hello: SomeEnum}")

expect(ts.render(FieldRule::class)).toEqual( // language=TypeScript
"interface FieldRule<T> {field: keyof Hello; limits: Record<any, number>}")
Expand Down

0 comments on commit 53edd7e

Please sign in to comment.