pub fn stub_fetch(method: &str, url: &str, status: i64, body: &str)Expand description
Arrange the answer to a request the page is expected to send. A later stub for the same (method, url) REPLACES an earlier one, so a test can set the scene and then change it.