Skip to content

Commit

Permalink
ci: mock request for storage docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Mar 15, 2017
1 parent 0384c79 commit bd746f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ var fakeBunyan = function() {
};
};

// For {module:storage} docs.
var fakeRequest = function() {};

// For {module:logging-winston} docs.
var fakeWinston = function() {
return {
Expand Down Expand Up @@ -282,6 +285,7 @@ function createSnippet(mod, instantiation, method) {
.replace('require(\'level\')', FakeLevel.toString())
.replace('require(\'bluebird\')', FakeBluebird.toString())
.replace('require(\'bunyan\')', '(' + fakeBunyan.toString() + '())')
.replace('require(\'request\')', '(' + fakeRequest.toString() + '())')
.replace('require(\'winston\')', '(' + fakeWinston.toString() + '())')
.replace('require(\'fs\')', '(' + FakeFs.toString() + '())');
}
Expand Down

0 comments on commit bd746f4

Please sign in to comment.