Skip to content

Commit

Permalink
Add timing parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tchak committed May 15, 2018
1 parent 60df5e6 commit 43c1228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function passthroughRequest(verb, path) {
currentServer[verb.toLowerCase()](path, currentServer.passthrough);
}

export function stubRequest(verb, path, callback){
export function stubRequest(verb, path, callback, timing){
path = _config.preparePath(path);
assert('[FakeServer] cannot stub request if FakeServer is not running',
!!currentServer);
Expand Down Expand Up @@ -89,7 +89,7 @@ export function stubRequest(verb, path, callback){
return _config.afterResponse(returnValue, request);
};

currentServer[verb.toLowerCase()](path, boundCallback);
currentServer[verb.toLowerCase()](path, boundCallback, timing);
}

const FakeServer = {
Expand Down

0 comments on commit 43c1228

Please sign in to comment.