mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-23 23:58:02 -05:00
Added a method for returning all requests in mock-ajax.
This commit is contained in:
parent
d651885524
commit
50fea7e937
1 changed files with 4 additions and 0 deletions
|
@ -236,6 +236,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
return requests[index];
|
||||
};
|
||||
|
||||
this.all = function() {
|
||||
return requests.slice(0);
|
||||
};
|
||||
|
||||
this.filter = function(url_to_match) {
|
||||
if (requests.length == 0) return [];
|
||||
var matching_requests = [];
|
||||
|
|
Loading…
Reference in a new issue