Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Jan 30, 2024
1 parent bae7b8c commit 5fdfcbb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 11 additions & 1 deletion crates/subgraph/src/types/order_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl TryInto<OrderV2> for OrderDetail {
#[cfg(test)]
mod tests {
use super::*;
use crate::types::order::{Account, BigInt, Bytes, Erc20, Io, RainMetaV1, TokenVault};
use crate::types::order::{Account, BigInt, Bytes, Erc20, Io, RainMetaV1, TokenVault, Vault};

#[test]
fn test_try_into_call() {
Expand All @@ -78,6 +78,11 @@ mod tests {
token_vault: TokenVault {
id: "".into(),
vault_id: BigInt("1".into()),
vault: Vault {
owner: Account {
id: Bytes("".into())
}
},
token: Erc20 {
id: cynic::Id::new("0x0000000000000000000000000000000000000005"),
name: "".into(),
Expand All @@ -90,6 +95,11 @@ mod tests {
token_vault: TokenVault {
id: "".into(),
vault_id: BigInt("2".into()),
vault: Vault {
owner: Account {
id: Bytes("".into())
}
},
token: Erc20 {
id: cynic::Id::new("0x0000000000000000000000000000000000000006"),
name: "".into(),
Expand Down
10 changes: 10 additions & 0 deletions crates/subgraph/tests/order_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ fn orders_query_gql_output() {
tokenVault {
id
vaultId
vault {
owner {
id
}
}
token {
id
name
Expand All @@ -37,6 +42,11 @@ fn orders_query_gql_output() {
tokenVault {
id
vaultId
vault {
owner {
id
}
}
token {
id
name
Expand Down

0 comments on commit 5fdfcbb

Please sign in to comment.