Skip to content

Commit 0eb9835

Browse files
committed
Make graphql-client-web tests fail with debug message
1 parent c183af0 commit 0eb9835

File tree

1 file changed

+8
-2
lines changed
  • graphql_client_web/tests

1 file changed

+8
-2
lines changed

graphql_client_web/tests/web.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ fn test_germany() -> impl Future<Item = (), Error = JsValue> {
4444
.expect("germany is on a continent");
4545

4646
assert_eq!(continent_name, "Europe");
47-
}).map_err(|_| JsValue::NULL)
47+
}).map_err(|err| {
48+
panic!("{:?}", err);
49+
JsValue::NULL
50+
})
4851
}
4952

5053
#[derive(GraphQLQuery)]
@@ -74,5 +77,8 @@ fn test_country() -> impl Future<Item = (), Error = JsValue> {
7477
.expect("country is on a continent");
7578

7679
assert_eq!(continent_name, "Asia");
77-
}).map_err(|_| JsValue::NULL)
80+
}).map_err(|err| {
81+
panic!("{:?}", err);
82+
JsValue::NULL
83+
})
7884
}

0 commit comments

Comments
 (0)