From 20de1e3bd526dc05d16a229066a470050fbda28e Mon Sep 17 00:00:00 2001 From: "James, please" Date: Wed, 19 Oct 2016 18:53:28 -0700 Subject: [PATCH] Return the request from `end` Resolves gh-39 --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 4451fdb..5f0318a 100644 --- a/index.js +++ b/index.js @@ -103,6 +103,7 @@ function mock(superagent) { cb && cb(ex, null); } }, value(mock.timeout), state.request); + return this; } else { oldEnd.call(this, cb); }