Skip to content

Commit

Permalink
Remove tests related to Result's
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Jul 24, 2024
1 parent 8a39462 commit c860f7d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions specta-zod/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ fn typescript_types() {
assert_zod!(PhantomData<String>, r#"z.null()"#);
assert_zod!(Infallible, r#"z.never()"#);

assert_zod!(Result<String, i32>, r#"z.union([z.string(), z.number()])"#);
assert_zod!(Result<i16, i32>, r#"z.number()"#); // TODO: simplify
// assert_zod!(Result<String, i32>, r#"z.union([z.string(), z.number()])"#);
// assert_zod!(Result<i16, i32>, r#"z.number()"#); // TODO: simplify

#[cfg(feature = "either")]
{
Expand Down
2 changes: 1 addition & 1 deletion specta/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ derive = ["dep:specta-macros"]

#! Features
## Support for exporting the types of Rust functions.
function = ["specta-macros?/DO_NOT_USE_function", "dep:paste"] # TODO: Why does this depend on `serde`???
function = ["specta-macros?/DO_NOT_USE_function", "dep:paste"]

#! Compatability
## Support for [serde](https://serde.rs)
Expand Down
4 changes: 2 additions & 2 deletions tests/tests/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ fn typescript_types() {
assert_ts!(PhantomData<String>, r#"null"#);
assert_ts!(Infallible, r#"never"#);

assert_ts!(Result<String, i32>, r#"string | number"#);
assert_ts!(Result<i16, i32>, r#"number"#);
// assert_ts!(Result<String, i32>, r#"string | number"#);
// assert_ts!(Result<i16, i32>, r#"number"#);

#[cfg(feature = "either")]
{
Expand Down

0 comments on commit c860f7d

Please sign in to comment.