Skip to content

Commit b0126a4

Browse files
committed
extend tests for crate-publisher fetching
1 parent 4e67646 commit b0126a4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/index/api.rs

+7-3
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ mod tests {
176176
use serde_json::{self, json};
177177

178178
fn api() -> Api {
179-
Api::new(Some(Url::parse(&mockito::server_url()).unwrap())).unwrap()
179+
Api::new(Some(Url::parse(&mockito::server_url()).unwrap()), 1).unwrap()
180180
}
181181

182182
#[test]
@@ -190,13 +190,17 @@ mod tests {
190190
"id": 1,
191191
"login": "the_first_owner",
192192
"name": "name",
193-
"avatar": "http://something"
193+
"avatar": "http://something",
194+
"kind": "user",
195+
"url": "https://github.com/the_second_owner"
194196
},
195197
{
196198
"id": 2,
197199
"login": "the_second_owner",
198200
"name": "another name",
199-
"avatar": "http://anotherthing"
201+
"avatar": "http://anotherthing",
202+
"kind": "user",
203+
"url": "https://github.com/the_second_owner"
200204
}
201205
]}))
202206
.unwrap(),

0 commit comments

Comments
 (0)