MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / respondsWith

Function respondsWith

javascript/webdriver/test/http/http_test.js:88–96  ·  view source on GitHub ↗
(error, opt_response)

Source from the content-addressed store, hash-verified

86}
87
88function respondsWith(error, opt_response) {
89 return function() {
90 if (error) {
91 return goog.Promise.reject(error);
92 } else {
93 return goog.Promise.resolve(opt_response);
94 }
95 };
96}
97
98///////////////////////////////////////////////////////////////////////////////
99//

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected