Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asarazan committed Apr 29, 2024
1 parent 785cf42 commit 18ad8c5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/tests/comparisons.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe("Single File Comparisons", () => {
sourceRoot: root,
options: {
dedupeTaggedUnions: true,
experimentalZodSupport: true,
},
});
const out = sanitizeComparison(martok.generateMultiFile());
Expand Down
21 changes: 21 additions & 0 deletions tests/comparisons/single/ZodStuff.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/****************************************************
** DO NOT EDIT THIS FILE BY HAND! **
** This file was automatically generated by Martok **
** More info at https://github.com/asarazan/martok **
*****************************************************/
package example

import kotlinx.serialization.*
import kotlinx.serialization.json.*

/**
* @expand
*/
@Serializable
data class FormData(
val firstName: String,
val lastName: String,
val email: String,
val phone: String? = null,
val url: String? = null
)

0 comments on commit 18ad8c5

Please sign in to comment.