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
|
@ -235,6 +235,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
this.at = function(index) {
|
||||
return requests[index];
|
||||
};
|
||||
|
||||
this.all = function() {
|
||||
return requests.slice(0);
|
||||
};
|
||||
|
||||
this.filter = function(url_to_match) {
|
||||
if (requests.length == 0) return [];
|
||||
|
|
Loading…
Reference in a new issue