Skip to content

Commit

Permalink
Update browserify-bundle.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantinos Karachalios committed Oct 23, 2016
1 parent d5962f2 commit 28acae0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/browserify-public/browserify-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1787,7 +1787,7 @@ function deepEqualExtended(spec, body) {
if (spec && spec.constructor === RegExp) {
return spec.test(body);
}
if (spec && spec.constructor === Object && body) {
if (spec && spec.constructor === Object || spec.constructor === Array && body) {
var keys = Object.keys(spec);
for (var i = 0; i < keys.length; i++) {
if (!deepEqualExtended(spec[keys[i]], body[keys[i]])) {
Expand Down Expand Up @@ -2836,6 +2836,10 @@ Scope.prototype.delete = function _delete(uri, requestBody, options) {
return this.intercept(uri, 'DELETE', requestBody, options);
};

Scope.prototype.options = function _options(uri, requestBody, options) {
return this.intercept(uri, 'OPTIONS', requestBody, options);
};

Scope.prototype.pendingMocks = function pendingMocks() {
var self = this;

Expand Down

0 comments on commit 28acae0

Please sign in to comment.