Comparing version 8.3.2 to 8.4.0
@@ -0,1 +1,6 @@ | ||
8.4.0 / 2016-05-21 | ||
================== | ||
* Add support for Symbols in .eql | ||
8.3.2 / 2016-05-18 | ||
@@ -2,0 +7,0 @@ ================== |
{ | ||
"name": "should", | ||
"description": "test framework agnostic BDD-style assertions", | ||
"version": "8.3.2", | ||
"version": "8.4.0", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> and other contributors", | ||
@@ -42,3 +42,3 @@ "repository": { | ||
"dependencies": { | ||
"should-equal": "0.7.3", | ||
"should-equal": "0.8.0", | ||
"should-format": "0.3.2", | ||
@@ -45,0 +45,0 @@ "should-type": "0.2.0" |
/*! | ||
* should - test framework agnostic BDD-style assertions | ||
* @version v8.3.2 | ||
* @version v8.4.0 | ||
* @author TJ Holowaychuk <tj@vision-media.ca>, Denis Bardadym <bardadymchik@gmail.com> and other contributors | ||
@@ -8,3 +8,3 @@ * @link https://github.com/shouldjs/should.js | ||
*/ | ||
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():(t.Should=e(),Object.defineProperty(t,"should",{enumerable:!1,configurable:!0,value:t.Should}))}(this,function(){var t,e=null;return function r(t,a,n){function o(s,c){if(!a[s]){if(!t[s]){var u="function"==typeof e&&e;if(!c&&u)return u(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var f=a[s]={exports:{}};t[s][0].call(f.exports,function(e){var r=t[s][1][e];return o(r?r:e)},f,f.exports,r,t,a,n)}return a[s].exports}for(var i="function"==typeof e&&e,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(e,r,a){t=e(2)},{2:2}],2:[function(t,e,r){var a=t(19),n=Object.prototype,o="should";try{var i=a.extend(o,n);a._prevShould=i}catch(s){}e.exports=a},{19:19}],3:[function(t,e,r){function a(t){return s+t}function n(t){return t.split("\n").map(a).join("\n")}var o=t(20),i=function(t){if(o.merge(this,t),t.message||Object.defineProperty(this,"message",{get:function(){return this._message||(this._message=this.generateMessage(),this.generatedMessage=!0),this._message},configurable:!0,enumerable:!1}),Error.captureStackTrace)Error.captureStackTrace(this,this.stackStartFunction);else{var e=new Error;if(e.stack){var r=e.stack;if(this.stackStartFunction){var a=o.functionName(this.stackStartFunction),n=r.indexOf("\n"+a);if(n>=0){var i=r.indexOf("\n",n+1);r=r.substring(i+1)}}this.stack=r}}},s=" ";i.prototype=Object.create(Error.prototype,{name:{value:"AssertionError"},generateMessage:{value:function(){if(!this.operator&&this.previous)return this.previous.message;var t=o.format(this.actual),e="expected"in this?" "+o.format(this.expected):"",r="details"in this&&this.details?" ("+this.details+")":"",a=this.previous?"\n"+n(this.previous.message):"";return"expected "+t+(this.negate?" not ":" ")+this.operator+e+r+a}}}),e.exports=i},{20:20}],4:[function(t,e,r){function a(t){this.obj=t,this.anyOne=!1,this.negate=!1,this.params={actual:t}}function n(){a.apply(this,arguments)}var o=t(3);a.prototype={constructor:a,assert:function(t){if(t)return this;var e=this.params;throw"obj"in e&&!("actual"in e)?e.actual=e.obj:"obj"in e||"actual"in e||(e.actual=this.obj),e.stackStartFunction=e.stackStartFunction||this.assert,e.negate=this.negate,e.assertion=this,new o(e)},fail:function(){return this.assert(!1)}},n.prototype.then=function(t,e){return this.obj.then(t,e)},a.add=function(t,e){Object.defineProperty(a.prototype,t,{enumerable:!0,configurable:!0,value:function(){var r=new a(this.obj,this,t);r.anyOne=this.anyOne;try{e.apply(r,arguments)}catch(n){if(n instanceof o){if(this.negate)return this.obj=r.obj,this.negate=!1,this;r!==n.assertion&&(r.params.previous=n),r.negate=!1,r.fail()}throw n}return this.negate&&(r.negate=!0,r.params.details="false negative fail",r.fail()),this.params.operator||(this.params=r.params),this.obj=r.obj,this.negate=!1,this}}),Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,value:function(){var e=arguments;return this.obj=this.obj.then(function(r){return r[t].apply(r,e)}),this}})},a.addChain=function(t,e){e=e||function(){},Object.defineProperty(a.prototype,t,{get:function(){return e.call(this),this},enumerable:!0}),Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,get:function(){return this.obj=this.obj.then(function(e){return e[t]}),this}})},a.alias=function(t,e){var r=Object.getOwnPropertyDescriptor(a.prototype,t);if(!r)throw new Error("Alias "+t+" -> "+e+" could not be created as "+t+" not defined");Object.defineProperty(a.prototype,e,r);var o=Object.getOwnPropertyDescriptor(n.prototype,t);o&&Object.defineProperty(n.prototype,e,o)},a.addChain("not",function(){this.negate=!this.negate}),a.addChain("any",function(){this.anyOne=!0}),e.exports=a,e.exports.PromisedAssertion=n},{3:3}],5:[function(t,e,r){var a=t(23).Formatter,n={checkProtoEql:!1,getFormatter:function(t){return new a(t||n)}};e.exports=n},{23:23}],6:[function(t,e,r){function a(t,e,r,n,o){var i=new s(t);i.params={operator:n,expected:e,message:r,stackStartFunction:o||a},i.fail()}function n(t,e){t||a(t,!0,e,"==",l.ok)}function o(t,e){return t&&e?"[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e?!0:e.call({},t)===!0:!1}function i(t,e,r,n){var i;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+")":".")+(n?" "+n:"."),t&&!i&&a(i,r,"Missing expected exception"+n),!t&&o(i,r)&&a(i,r,"Got unwanted exception"+n),t&&i&&r&&!o(i,r)||!t&&i)throw i}var s=t(4),c=t(22),u=Array.prototype.slice,l=e.exports=n;l.fail=a,l.ok=n,l.equal=function(t,e,r){t!=e&&a(t,e,r,"==",l.equal)},l.notEqual=function(t,e,r){t==e&&a(t,e,r,"!=",l.notEqual)},l.deepEqual=function(t,e,r){c(t,e).result||a(t,e,r,"deepEqual",l.deepEqual)},l.notDeepEqual=function(t,e,r){c(t,e).result&&a(t,e,r,"notDeepEqual",l.notDeepEqual)},l.strictEqual=function(t,e,r){t!==e&&a(t,e,r,"===",l.strictEqual)},l.notStrictEqual=function(t,e,r){t===e&&a(t,e,r,"!==",l.notStrictEqual)},l["throws"]=function(){i.apply(this,[!0].concat(u.call(arguments)))},l.doesNotThrow=function(){i.apply(this,[!1].concat(u.call(arguments)))},l.ifError=function(t){if(t)throw t}},{22:22,4:4}],7:[function(t,e,r){var a=t(20),n=t(6),o=t(3);e.exports=function(t){var e=t.format;a.merge(t,n),t.exist=t.exists=function(r,a){if(null==r)throw new o({message:a||"expected "+e(r)+" to exist",stackStartFunction:t.exist})},t.not={},t.not.exist=t.not.exists=function(r,a){if(null!=r)throw new o({message:a||"expected "+e(r)+" to not exist",stackStartFunction:t.not.exist})}}},{20:20,3:3,6:6}],8:[function(t,e,r){e.exports=function(t,e){e.add("true",function(t){this.is.exactly(!0,t)}),e.alias("true","True"),e.add("false",function(t){this.is.exactly(!1,t)}),e.alias("false","False"),e.add("ok",function(){this.params={operator:"to be truthy"},this.assert(this.obj)})}},{}],9:[function(t,e,r){e.exports=function(t,e){["an","of","a","and","be","has","have","with","is","which","the","it"].forEach(function(t){e.addChain(t)})}},{}],10:[function(t,e,r){var a=t(20),n=t(22);e.exports=function(t,e){var r=t.format;e.add("containEql",function(t){this.params={operator:"to contain "+r(t)},this.is.not["null"]().and.not.undefined();var e=this.obj;"string"==typeof e?this.assert(e.indexOf(String(t))>=0):a.isIndexable(e)?this.assert(a.some(e,function(e){return n(e,t).result})):this.have.properties(t)}),e.add("containDeepOrdered",function(e){this.params={operator:"to contain "+r(e)};var n=this.obj;if("string"==typeof n)this.is.equal(String(e));else if(a.isIndexable(n)&&a.isIndexable(e)){for(var o=0,i=0,s=a.length(n),c=a.length(e);s>o&&c>i;o++)try{t(n[o]).containDeepOrdered(e[i]),i++}catch(u){if(u instanceof t.AssertionError)continue;throw u}this.assert(i===c)}else null!=n&&null!=e&&"object"==typeof n&&"object"==typeof e?(a.forEach(e,function(e,r){t(n[r]).containDeepOrdered(e)}),a.isEmptyObject(e)&&this.eql(e)):this.eql(e)}),e.add("containDeep",function(e){this.params={operator:"to contain "+r(e)};var n=this.obj;if("string"==typeof n)this.is.equal(String(e));else if(a.isIndexable(n)&&a.isIndexable(e)){var o={};a.forEach(e,function(e){this.assert(a.some(n,function(r,a){if(a in o)return!1;try{return t(r).containDeep(e),o[a]=!0,!0}catch(n){if(n instanceof t.AssertionError)return!1;throw n}}))},this)}else null!=n&&null!=e&&"object"==typeof n&&"object"==typeof e?(a.forEach(e,function(e,r){t(n[r]).containDeep(e)}),a.isEmptyObject(e)&&this.eql(e)):this.eql(e)})}},{20:20,22:22}],11:[function(t,e,r){function a(t,e,r){return((t.path.length>0?"at "+t.path.map(i.formatProp).join(" -> "):"")+(t.a===e?"":", A has "+i.format(t.a))+(t.b===r?"":" and B has "+i.format(t.b))+(t.showReason?" because "+t.reason:"")).trim()}var n=t(22),o=t(25),i=t(20);e.exports=function(t,e){function r(r,a,n){e.add(r,function(e){1!==arguments.length?e=Array.prototype.slice.call(arguments):t(e).be.Array(),this.params={operator:a,expected:e};var r=this.obj,o=!1;i.forEach(e,function(e){try{return t(e)[n](r),o=!0,!1}catch(a){if(a instanceof t.AssertionError)return;throw a}}),this.assert(o)})}e.add("eql",function(e,r){this.params={operator:"to equal",expected:e,message:r};var i=n(this.obj,e,t.config);this.params.details=i.result?"":a(i,this.obj,e),this.params.showDiff=n(o(this.obj),o(e)).result,this.assert(i.result)}),e.add("equal",function(t,e){this.params={operator:"to be",expected:t,message:e},this.params.showDiff=n(o(this.obj),o(t)).result,this.assert(t===this.obj)}),e.alias("equal","exactly"),e.alias("eql","deepEqual"),r("equalOneOf","to be equals one of","equal"),r("oneOf","to be one of","eql")}},{20:20,22:22,25:25}],12:[function(t,e,r){var a=t(20);e.exports=function(t,e){var r=t.format;e.add("throw",function(e,n){var o=this.obj,i={},s="",c=!1;if(a.isGeneratorFunction(o))return t(o())["throw"](e,n);if(a.isGeneratorObject(o))return t(o.next.bind(o))["throw"](e,n);this.is.a.Function();var u=!0;try{o()}catch(l){c=!0,i=l}if(c)if(e){if("string"==typeof e)u=e==i.message;else if(e instanceof RegExp)u=e.test(i.message);else if("function"==typeof e)u=i instanceof e;else if(null!=e)try{t(i).match(e)}catch(l){if(!(l instanceof t.AssertionError))throw l;s=": "+l.message,u=!1}if(u){if("function"==typeof e&&n)try{t(i).match(n)}catch(l){if(!(l instanceof t.AssertionError))throw l;s=": "+l.message,u=!1}}else"string"==typeof e||e instanceof RegExp?s=" with a message matching "+r(e)+", but got '"+i.message+"'":"function"==typeof e&&(s=" of type "+a.functionName(e)+", but got "+a.functionName(i.constructor))}else s=" (got "+r(i)+")";this.params={operator:"to throw exception"+s},this.assert(c),this.assert(u)}),e.alias("throw","throwError")}},{20:20}],13:[function(t,e,r){var a=t(20),n=t(22);e.exports=function(t,e){var r=t.format;e.add("match",function(e,o){if(this.params={operator:"to match "+r(e),message:o},!n(this.obj,e).result)if(e instanceof RegExp){if("string"==typeof this.obj)this.assert(e.exec(this.obj));else if(a.isIndexable(this.obj))a.forEach(this.obj,function(t){this.assert(e.exec(t))},this);else if(null!=this.obj&&"object"==typeof this.obj){var i=[],s=[];a.forEach(this.obj,function(t,n){e.exec(t)?s.push(a.formatProp(n)):i.push(a.formatProp(n)+" ("+r(t)+")")},this),i.length&&(this.params.operator+="\n not matched properties: "+i.join(", ")),s.length&&(this.params.operator+="\n matched properties: "+s.join(", ")),this.assert(0===i.length)}}else if("function"==typeof e){var c;c=e(this.obj),"boolean"==typeof c&&this.assert(c)}else null!=e&&null!=this.obj&&"object"==typeof e&&"object"==typeof this.obj?(i=[],s=[],a.forEach(e,function(e,n){try{t(this.obj).have.property(n).which.match(e),s.push(a.formatProp(n))}catch(o){if(!(o instanceof t.AssertionError))throw o;i.push(a.formatProp(n)+" ("+r(this.obj[n])+")")}},this),i.length&&(this.params.operator+="\n not matched properties: "+i.join(", ")),s.length&&(this.params.operator+="\n matched properties: "+s.join(", ")),this.assert(0===i.length)):this.assert(!1)}),e.add("matchEach",function(e,n){this.params={operator:"to match each "+r(e),message:n},a.forEach(this.obj,function(r){t(r).match(e)},this)}),e.add("matchAny",function(e,n){this.params={operator:"to match any "+r(e),message:n},this.assert(a.some(this.obj,function(r){try{return t(r).match(e),!0}catch(a){if(a instanceof t.AssertionError)return!1;throw a}}))}),e.alias("matchAny","matchSome"),e.alias("matchEach","matchEvery")}},{20:20,22:22}],14:[function(t,e,r){e.exports=function(t,e){e.add("NaN",function(){this.params={operator:"to be NaN"},this.assert(this.obj!==this.obj)}),e.add("Infinity",function(){this.params={operator:"to be Infinity"},this.is.a.Number().and.not.a.NaN().and.assert(!isFinite(this.obj))}),e.add("within",function(t,e,r){this.params={operator:"to be within "+t+".."+e,message:r},this.assert(this.obj>=t&&this.obj<=e)}),e.add("approximately",function(t,e,r){this.params={operator:"to be approximately "+t+" ±"+e,message:r},this.assert(Math.abs(this.obj-t)<=e)}),e.add("above",function(t,e){this.params={operator:"to be above "+t,message:e},this.assert(this.obj>t)}),e.add("below",function(t,e){this.params={operator:"to be below "+t,message:e},this.assert(this.obj<t)}),e.alias("above","greaterThan"),e.alias("below","lessThan"),e.add("aboveOrEqual",function(t,e){this.params={operator:"to be above or equal"+t,message:e},this.assert(this.obj>=t)}),e.add("belowOrEqual",function(t,e){this.params={operator:"to be below or equal"+t,message:e},this.assert(this.obj<=t)}),e.alias("aboveOrEqual","greaterThanOrEqual"),e.alias("belowOrEqual","lessThanOrEqual")}},{}],15:[function(t,e,r){var a=t(20),n=t(4).PromisedAssertion,o=t(4);e.exports=function(t){o.add("Promise",function(){this.params={operator:"to be promise"};var e=this.obj;t(e).have.property("then").which.is.a.Function()}),o.prototype.fulfilled=function(){this.params={operator:"to be fulfilled"},t(this.obj).be.a.Promise();var e=this;return this.obj.then(function(t){return e.negate&&e.fail(),t},function(r){return e.negate||(e.params.operator+=", but it was rejected with "+t.format(r),e.fail()),r})},o.prototype.rejected=function(){this.params={operator:"to be rejected"},t(this.obj).be.a.Promise();var e=this;return this.obj.then(function(r){return e.negate||(e.params.operator+=", but it was fulfilled",0!=arguments.length&&(e.params.operator+=" with "+t.format(r)),e.fail()),r},function(t){return e.negate&&e.fail(),t})},o.prototype.fulfilledWith=function(e){this.params={operator:"to be fulfilled with "+t.format(e)},t(this.obj).be.a.Promise();var r=this;return this.obj.then(function(a){return r.negate&&r.fail(),t(a).eql(e),a},function(e){return r.negate||(r.params.operator+=", but it was rejected with "+t.format(e),r.fail()),e})},o.prototype.rejectedWith=function(e,r){this.params={operator:"to be rejected"},t(this.obj).be.a.Promise();var n=this;return this.obj.then(function(t){return n.negate||n.fail(),t},function(o){n.negate&&n.fail();var i=!0,s="";if("string"==typeof e)i=e===o.message;else if(e instanceof RegExp)i=e.test(o.message);else if("function"==typeof e)i=o instanceof e;else if(null!==e&&"object"==typeof e)try{t(o).match(e)}catch(c){if(!(c instanceof t.AssertionError))throw c;s=": "+c.message,i=!1}if(i){if("function"==typeof e&&r)try{t(o).match(r)}catch(c){if(!(c instanceof t.AssertionError))throw c;s=": "+c.message,i=!1}}else"string"==typeof e||e instanceof RegExp?s=" with a message matching "+t.format(e)+", but got '"+o.message+"'":"function"==typeof e&&(s=" of type "+a.functionName(e)+", but got "+a.functionName(o.constructor));return n.params.operator+=s,n.assert(i),o})},Object.defineProperty(o.prototype,"finally",{get:function(){t(this.obj).be.a.Promise();var e=this;return new n(this.obj.then(function(r){var a=t(r);return a.negate=e.negate,a.anyOne=e.anyOne,a}))}}),o.alias("finally","eventually")}},{20:20,4:4}],16:[function(t,e,r){var a=t(20),n=t(22),o=Array.prototype.slice;e.exports=function(t,e){function r(){var t={};if(arguments.length>1)t.names=o.call(arguments);else{var e=arguments[0];"string"==typeof e?t.names=[e]:a.isIndexable(e)?t.names=e:(t.names=Object.keys(e),t.values=e)}return t}var i=t.format;e.add("propertyWithDescriptor",function(e,r){this.params={actual:this.obj,operator:"to have own property with descriptor "+i(r)};var a=this.obj;this.have.ownProperty(e),t(Object.getOwnPropertyDescriptor(Object(a),e)).have.properties(r)}),e.add("enumerable",function(t,e){t=a.convertPropertyName(t),this.params={operator:"to have enumerable property "+a.formatProp(t)+(arguments.length>1?" equal to "+i(e):"")};var r={enumerable:!0};arguments.length>1&&(r.value=e),this.have.propertyWithDescriptor(t,r)}),e.add("enumerables",function(){var e=r.apply(null,arguments);this.params={operator:"to have enumerables "+e.names.map(a.formatProp)};var n=this.obj;e.names.forEach(function(e){t(n).have.enumerable(e)})}),e.add("property",function(t,e){if(t=a.convertPropertyName(t),arguments.length>1){var r={};r[t]=e,this.have.properties(r)}else this.have.properties(t);this.obj=this.obj[t]}),e.add("properties",function(t){var e={};arguments.length>1?t=o.call(arguments):Array.isArray(t)||("string"==typeof t||"symbol"==typeof t?t=[t]:(e=t,t=Object.keys(t)));var r=Object(this.obj),s=[];t.forEach(function(t){t in r||s.push(a.formatProp(t))});var c=s;0===c.length?c=t.map(a.formatProp):this.anyOne&&(c=t.filter(function(t){return s.indexOf(a.formatProp(t))<0}).map(a.formatProp));var u=(1===c.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+c.join(", ");this.params={obj:this.obj,operator:u},this.assert(0===s.length||this.anyOne&&s.length!=t.length);var l=Object.keys(e);if(l.length){var f=[];c=[],l.forEach(function(t){var o=e[t];n(r[t],o).result?c.push(a.formatProp(t)+" of "+i(o)):f.push(a.formatProp(t)+" of "+i(o)+" (got "+i(r[t])+")")}),(0!==f.length&&!this.anyOne||this.anyOne&&0===c.length)&&(c=f),u=(1===c.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+c.join(", "),this.params={obj:this.obj,operator:u},this.assert(0===f.length||this.anyOne&&f.length!=l.length)}}),e.add("length",function(t,e){this.have.property("length",t,e)}),e.alias("length","lengthOf");var s=Object.prototype.hasOwnProperty;e.add("ownProperty",function(t,e){t=a.convertPropertyName(t),this.params={actual:this.obj,operator:"to have own property "+a.formatProp(t),message:e},this.assert(s.call(this.obj,t)),this.obj=this.obj[t]}),e.alias("ownProperty","hasOwnProperty"),e.add("empty",function(){if(this.params={operator:"to be empty"},void 0!==a.length(this.obj))t(this.obj).have.property("length",0);else{var e=Object(this.obj);for(var r in e)t(this.obj).not.have.ownProperty(r)}},!0),e.add("keys",function(t){arguments.length>1?t=o.call(arguments):1===arguments.length&&"string"==typeof t?t=[t]:0===arguments.length&&(t=[]),t=t.map(String);var e=Object(this.obj),r=[];t.forEach(function(t){s.call(this.obj,t)||r.push(a.formatProp(t))},this);var n=[];Object.keys(e).forEach(function(e){t.indexOf(e)<0&&n.push(a.formatProp(e))});var i=0===t.length?"to be empty":"to have "+(1===t.length?"key ":"keys ");this.params={operator:i+t.map(a.formatProp).join(", ")},r.length>0&&(this.params.operator+="\n missing keys: "+r.join(", ")),n.length>0&&(this.params.operator+="\n extra keys: "+n.join(", ")),this.assert(0===r.length&&0===n.length)}),e.alias("keys","key"),e.add("propertyByPath",function(e){arguments.length>1?e=o.call(arguments):1===arguments.length&&"string"==typeof e?e=[e]:0===arguments.length&&(e=[]);var r=e.map(a.formatProp);e=e.map(String);for(var n,i=t(Object(this.obj)),s=[];e.length;)n=e.shift(),this.params={operator:"to have property by path "+r.join(", ")+" - failed on "+a.formatProp(n)},i=i.have.property(n),s.push(n);this.params={obj:this.obj,operator:"to have property by path "+r.join(", ")},this.obj=i.obj})}},{20:20,22:22}],17:[function(t,e,r){e.exports=function(t,e){e.add("startWith",function(e,r){this.params={operator:"to start with "+t.format(e),message:r},this.assert(0===this.obj.indexOf(e))}),e.add("endWith",function(e,r){this.params={operator:"to end with "+t.format(e),message:r},this.assert(this.obj.indexOf(e,this.obj.length-e.length)>=0)})}},{}],18:[function(t,e,r){var a=t(20);e.exports=function(t,e){e.add("Number",function(){this.params={operator:"to be a number"},this.have.type("number")}),e.add("arguments",function(){this.params={operator:"to be arguments"},this.have["class"]("Arguments")}),e.alias("arguments","Arguments"),e.add("type",function(e,r){this.params={operator:"to have type "+e,message:r},t(typeof this.obj).be.exactly(e)}),e.add("instanceof",function(t,e){this.params={operator:"to be an instance of "+a.functionName(t),message:e},this.assert(Object(this.obj)instanceof t)}),e.alias("instanceof","instanceOf"),e.add("Function",function(){this.params={operator:"to be a function"},this.have.type("function")}),e.add("Object",function(){this.params={operator:"to be an object"},this.is.not["null"]().and.have.type("object")}),e.add("String",function(){this.params={operator:"to be a string"},this.have.type("string")}),e.add("Array",function(){this.params={operator:"to be an array"},this.have["class"]("Array")}),e.add("Boolean",function(){this.params={operator:"to be a boolean"},this.have.type("boolean")}),e.add("Error",function(){this.params={operator:"to be an error"},this.have.instanceOf(Error)}),e.add("Date",function(){this.params={operator:"to be a date"},this.have.instanceOf(Date)}),e.add("null",function(){this.params={operator:"to be null"},this.assert(null===this.obj)}),e.alias("null","Null"),e.add("class",function(t){this.params={operator:"to have [[Class]] "+t},this.assert(Object.prototype.toString.call(this.obj)==="[object "+t+"]")}),e.alias("class","Class"),e.add("undefined",function(){this.params={operator:"to be undefined"},this.assert(void 0===this.obj)}),e.alias("undefined","Undefined"),e.add("iterable",function(){this.params={operator:"to be iterable"},t(this.obj).have.property(Symbol.iterator).which.is.a.Function()}),e.add("iterator",function(){this.params={operator:"to be iterator"},t(this.obj).have.property("next").which.is.a.Function()}),e.add("generator",function(){this.params={operator:"to be generator"},t(this.obj).be.iterable.and.iterator.and.it.is.equal(this.obj[Symbol.iterator]())})}},{20:20}],19:[function(t,e,r){function a(t){return new a.Assertion(t)}var n=t(20);a.AssertionError=t(3),a.Assertion=t(4),a.format=n.format,a.type=t(25),a.util=n,a.config=t(5),r=e.exports=a,a.extend=function(t,e){t=t||"should",e=e||Object.prototype;var r=Object.getOwnPropertyDescriptor(e,t);return Object.defineProperty(e,t,{set:function(){},get:function(){return a(n.isWrapperType(this)?this.valueOf():this)},configurable:!0}),{name:t,descriptor:r,proto:e}},a.noConflict=function(t){return t=t||a._prevShould,t&&(delete t.proto[t.name],t.descriptor&&Object.defineProperty(t.proto,t.name,t.descriptor)),a},a.use=function(t){return t(a,a.Assertion),this},a.use(t(7)).use(t(9)).use(t(8)).use(t(14)).use(t(11)).use(t(18)).use(t(17)).use(t(16)).use(t(12)).use(t(13)).use(t(10)).use(t(15))},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,20:20,25:25,3:3,4:4,5:5,7:7,8:8,9:9}],20:[function(t,e,r){var a=t(25),n=t(5);r.isWrapperType=function(t){return t instanceof Number||t instanceof String||t instanceof Boolean},r.merge=function(t,e){if(t&&e)for(var r in e)t[r]=e[r];return t};var o=Object.prototype.hasOwnProperty;r.forEach=function i(t,e,a){if(r.isGeneratorFunction(t))return i(t(),e,a);if(r.isGeneratorObject(t))for(var n=t.next();!n.done;){if(e.call(a,n.value,"value",t)===!1)return;n=t.next()}else for(var s in t)if(o.call(t,s)&&e.call(a,t[s],s,t)===!1)return},r.some=function(t,e,a){var n=!1;return r.forEach(t,function(r,o){return e.call(a,r,o,t)?(n=!0,!1):void 0},a),n},r.isEmptyObject=function(t){for(var e in t)if(o.call(t,e))return!1;return!0},r.isIndexable=function(t){var e=a(t);return e.type===a.OBJECT&&e.cls===a.ARRAY||e.type===a.OBJECT&&e.cls===a.BUFFER||e.type===a.OBJECT&&e.cls===a.ARGUMENTS||e.type===a.OBJECT&&e.cls===a.ARRAY_BUFFER||e.type===a.OBJECT&&e.cls===a.TYPED_ARRAY||e.type===a.OBJECT&&e.cls===a.DATA_VIEW||e.type===a.OBJECT&&e.cls===a.STRING||e.type===a.STRING},r.length=function(t){var e=a(t);switch(e.type){case a.STRING:return t.length;case a.OBJECT:switch(e.cls){case a.ARRAY_BUFFER:case a.TYPED_ARRAY:case a.DATA_VIEW:return t.byteLength;case a.ARRAY:case a.BUFFER:case a.ARGUMENTS:case a.FUNCTION:return t.length}}},r.convertPropertyName=function(t){return"symbol"==typeof t?t:String(t)},r.isGeneratorObject=function(t){return t?"function"==typeof t.next&&"function"==typeof t[Symbol.iterator]&&t[Symbol.iterator]()===t:!1},r.isGeneratorFunction=function(t){return"function"!=typeof t?!1:/^function\s*\*\s*/.test(t.toString())},r.format=function(t,e){return n.getFormatter(e).format(t)},r.functionName=t(23).Formatter.functionName,r.formatProp=function(t){return n.getFormatter().formatPropertyName(String(t))}},{23:23,25:25,5:5}],21:[function(t,e,r){e.exports=function(t){for(var e=arguments,r=1,a=e.length;a>r;r++)t=t.replace(/%s/,e[r]);return t}},{}],22:[function(t,e,r){function a(t,e,r,a,n){var o={result:t};return t||(o.path=e,o.reason=r,o.a=a,o.b=n),o}function n(t){return t.type+(t.cls?"("+t.cls+(t.sub?" "+t.sub:"")+")":"")}function o(t,e,r,i,h,p,d){function b(n,o){if(arguments.length>2){var i=Array.prototype.slice.call(arguments,2);o=c.apply(null,[o].concat(i))}var s=a(n,p,o,t,e);return!n&&r.collectAllFails&&d.push(s),s}function m(a){return o(t[a],e[a],r,i,h,p.concat([a]),d)}function y(t,e){return o(t,e,r,i,h,p,d)}var g=l;if(t===e)return b(0!==t||1/t==1/e||r.plusZeroAndMinusZeroEqual,f.PLUS_0_AND_MINUS_0);var j,v,E,A=s(t),O=s(e),S=A.type!==O.type||A.cls!==O.cls;if(S||r.checkSubType&&A.sub!==O.sub||!r.checkSubType)return b(!1,f.DIFFERENT_TYPES,n(A),n(O));switch(A.type){case"number":return t!==t?b(e!==e,f.NAN_NUMBER):b(t===e,f.EQUALITY);case"boolean":case"string":return b(t===e,f.EQUALITY);case"function":if(g=y(t.toString(),e.toString()),!g.result&&(g.reason=f.FUNCTION_SOURCES,!r.collectAllFails))return g;break;case"object":switch(A.cls){case"regexp":for(v=["source","global","multiline","lastIndex","ignoreCase"];v.length;)if(g=m(v.shift()),!g.result&&!r.collectAllFails)return g;break;case"date":if(+t!==+e&&(g=b(!1,f.EQUALITY),!g.result&&!r.collectAllFails))return g;break;case"number":case"boolean":case"string":if(g=y(t.valueOf(),e.valueOf()),!g.result&&(g.reason=f.WRAPPED_VALUE,!r.collectAllFails))return g;break;case"buffer":if(g=m("length"),!g.result&&!r.collectAllFails)return g;for(j=t.length;j--;)if(g=m(j),!g.result&&!r.collectAllFails)return g;return l;case"error":for(v=["name","message"];v.length;)if(g=m(v.shift()),!g.result&&!r.collectAllFails)return g;break;case"array":case"arguments":case"typed-array":if(g=m("length"),!g.result&&!r.collectAllFails)return g;break;case"array-buffer":if(g=m("byteLength"),!g.result&&!r.collectAllFails)return g;break;case"map":case"set":if(g=m("size"),!g.result&&!r.collectAllFails)return g;i.push(t),h.push(e);for(var P=t.entries(),x=P.next();!x.done;){if(E=x.value[0],"object"!=s(E).type){if(e.has(E)){if("map"==A.cls){var T=e.get(E);if(g=y(x.value[1],T),!g.result&&(g.a=x.value,g.b=T,g.reason=f.MAP_VALUE_EQUALITY,!r.collectAllFails))break}}else if(g=b(!1,f.SET_MAP_MISSING_KEY),g.a=E,g.b=E,!r.collectAllFails)break}else for(var N=e.entries(),F=N.next();!F.done;){if(g=y(x.value[0],F.value[0]),g.result){if("map"==A.cls&&(g=y(x.value[1],F.value[1]),g.result||(g.a=x.value,g.b=F.value,g.reason=f.MAP_VALUE_EQUALITY)),!r.collectAllFails)break}else g.reason=f.SET_MAP_MISSING_KEY,g.a=E,g.b=E;F=N.next()}if(!g.result&&!r.collectAllFails)break;x=P.next()}if(i.pop(),h.pop(),!g.result&&(g.reason=f.SET_MAP_MISSING_ENTRY,!r.collectAllFails))return g}}for(j=i.length;j--;)if(i[j]===t)return b(h[j]===e,f.CIRCULAR_VALUES);i.push(t),h.push(e);for(E in e)if(u.call(e,E)){if(g=b(u.call(t,E),f.MISSING_KEY,"A",E),!g.result&&!r.collectAllFails)break;if(g.result&&(g=m(E),!g.result&&!r.collectAllFails))break}if(g.result||r.collectAllFails)for(E in t)if(u.call(t,E)&&(g=b(u.call(e,E),f.MISSING_KEY,"B",E),!g.result&&!r.collectAllFails))return g;if(i.pop(),h.pop(),!g.result&&!r.collectAllFails)return g;var w=!1,_=!1;return!r.checkProtoEql||(Object.getPrototypeOf&&(w=Object.getPrototypeOf(t)===Object.getPrototypeOf(e),_=!0),!_||w||(g=b(w,f.EQUALITY_PROTOTYPE),g.showReason=!0,g.result||r.collectAllFails))?l:g}function i(t,e,r){r=r||{};var a={checkProtoEql:"boolean"!=typeof r.checkProtoEql?h.checkProtoEql:r.checkProtoEql,checkSubType:"boolean"!=typeof r.checkSubType?h.checkSubType:r.checkSubType,plusZeroAndMinusZeroEqual:"boolean"!=typeof r.plusZeroAndMinusZeroEqual?h.plusZeroAndMinusZeroEqual:r.plusZeroAndMinusZeroEqual},n=[],i=o(t,e,a,[],[],[],n);return r.collectAllFails?n:i}var s=t(25),c=t(21),u=Object.prototype.hasOwnProperty,l=a(!0),f={PLUS_0_AND_MINUS_0:"+0 is not equal to -0",DIFFERENT_TYPES:"A has type %s and B has type %s",NAN_NUMBER:"NaN is not equal to any number",EQUALITY:"A is not equal to B",EQUALITY_PROTOTYPE:"A and B have different prototypes",WRAPPED_VALUE:"A wrapped value is not equal to B wrapped value",FUNCTION_SOURCES:"function A is not equal to B by source code value (via .toString call)",MISSING_KEY:"%s has no key %s",CIRCULAR_VALUES:"A has circular reference that was visited not in the same time as B",SET_MAP_MISSING_KEY:"Set/Map missing key",MAP_VALUE_EQUALITY:"Values of the same key in A and B is not equal"},h={checkProtoEql:!0,checkSubType:!0,plusZeroAndMinusZeroEqual:!1};e.exports=i,i.r=f},{21:21,25:25}],23:[function(t,e,r){function a(t){return function(e){var r=t(e);return r.sort(),r}}function n(t){t=t||{},this.seen=[],this.keys=a(t.keys===!1?Object.getOwnPropertyNames:Object.keys),this.maxLineLength="number"==typeof t.maxLineLength?t.maxLineLength:60,this.propSep=t.propSep||",",this.isUTCdate=!!t.isUTCdate}function o(t,e){var r=e?"UTC":"",a=t["get"+r+"FullYear"]()+"-"+c.pad0(t["get"+r+"Month"]()+1,2)+"-"+c.pad0(t["get"+r+"Date"](),2),n=c.pad0(t["get"+r+"Hours"](),2)+":"+c.pad0(t["get"+r+"Minutes"](),2)+":"+c.pad0(t["get"+r+"Seconds"](),2)+"."+c.pad0(t["get"+r+"Milliseconds"](),3),o=t.getTimezoneOffset(),i=Math.abs(o),s=Math.floor(i/60),u=i-60*s,l=(0>o?"+":"-")+c.pad0(s,2)+c.pad0(u,2);return a+" "+n+(e?"":" "+l)}function i(t,e){return new n(e).format(t)}var s=t(25),c=t(24);n.prototype={constructor:n,format:function(t){var e=s(t),r=e.type,a=e.type;e.cls&&(r+="_"+e.cls,a+="_"+e.cls),e.sub&&(a+="_"+e.sub);var n=this["_format_"+a]||this["_format_"+r]||this["_format_"+e.type]||this.defaultFormat;return n.call(this,t).trim()},_formatObject:function(t,e){e=e||{};var r=e.keys||this.keys(t),a=0,o=e.formatPropertyValue||this.formatPropertyValue,i=e.formatPropertyName||this.formatPropertyName,s=e.keyValueSep||": ",u=e.keyFilter||function(){return!0};this.seen.push(t);var l=[];r.forEach(function(e){if(u(e)){var r=i.call(this,e),n=(r?r+s:"")+o.call(this,t,e);a+=n.length,l.push(n)}},this),this.seen.pop(),(e.additionalProperties||[]).forEach(function(t){var e=t[0]+s+this.format(t[1]);a+=e.length,l.push(e)},this);var f=e.prefix||n.constructorName(t)||"";f.length>0&&(f+=" ");var h,p;Array.isArray(e.brackets)?(h=e.brackets&&e.brackets[0],p=e.brackets&&e.brackets[1]):(h="{",p="}");var d=e.value||"";return 0===l.length?d||f+h+p:a<=this.maxLineLength?f+h+" "+(d?d+" ":"")+l.join(this.propSep+" ")+" "+p:f+h+"\n"+(d?" "+d+"\n":"")+l.map(c.addSpaces).join(this.propSep+"\n")+"\n"+p},formatObject:function(t,e,r){r=r||this.keys(t);var a=0;return this.seen.push(t),r=r.map(function(e){var r=this.formatProperty(t,e);return a+=r.length,r},this),this.seen.pop(),0===r.length?"{}":a<=this.maxLineLength?"{ "+(e?e+" ":"")+r.join(this.propSep+" ")+" }":"{\n"+(e?" "+e+"\n":"")+r.map(c.addSpaces).join(this.propSep+"\n")+"\n}"},formatPropertyName:function(t){return t.match(/^[a-zA-Z_$][a-zA-Z_$0-9]*$/)?t:this.format(t)},formatProperty:function(t,e){var r=n.getPropertyDescriptor(t,e),a=this.formatPropertyName(e),o=r.get&&r.set?"[Getter/Setter]":r.get?"[Getter]":r.set?"[Setter]":this.seen.indexOf(r.value)>=0?"[Circular]":this.format(r.value);return a+": "+o},formatPropertyValue:function(t,e){var r=n.getPropertyDescriptor(t,e),a=r.get&&r.set?"[Getter/Setter]":r.get?"[Getter]":r.set?"[Setter]":this.seen.indexOf(r.value)>=0?"[Circular]":this.format(r.value);return a}},n.add=function(t,e,r,a){var o=Array.prototype.slice.call(arguments);a=o.pop(),n.prototype["_format_"+o.join("_")]=a},n.formatObjectWithPrefix=function(t){return function(e){var r=t.call(this,e),a=this.keys(e);return 0==a.length?r:this.formatObject(e,r,a)}};var u=/^\s*function\s*(\S*)\s*\(/;n.functionName=function(t){if(t.name)return t.name;var e=t.toString().match(u);if(null===e)return"";var r=e[1];return r},n.constructorName=function(t){for(;t;){var e=Object.getOwnPropertyDescriptor(t,"constructor");if(void 0!==e&&"function"==typeof e.value){var r=n.functionName(e.value);if(""!==r)return r}t=Object.getPrototypeOf(t)}},n.getPropertyDescriptor=function(t,e){var r;try{r=Object.getOwnPropertyDescriptor(t,e)||{value:t[e]}}catch(a){r={ | ||
value:a}}return r},n.generateFunctionForIndexedArray=function(t,e,r){return function(a){for(var n=this.byteArrayMaxLength||50,o=a[t],i=[],s=0,u=0;n>u&&o>u;u++){var l=a[u]||0,f=c.pad0(l.toString(16),r);s+=f.length,i.push(f)}var h=a.constructor.name||e||"";return h&&(h+=" "),0===i.length?h+"[]":s<=this.maxLineLength?h+"[ "+i.join(this.propSep+" ")+" ]":h+"[\n"+i.map(c.addSpaces).join(this.propSep+"\n")+"\n]"}},n.add("undefined",function(){return"undefined"}),n.add("null",function(){return"null"}),n.add("boolean",function(t){return t?"true":"false"}),n.add("symbol",function(t){return t.toString()}),["number","boolean"].forEach(function(t){n.add("object",t,function(t){return this._formatObject(t,{additionalProperties:[["[[PrimitiveValue]]",t.valueOf()]]})})}),n.add("object","string",function(t){var e=t.valueOf();return this._formatObject(t,{keyFilter:function(t){return!(t.match(/\d+/)&&parseInt(t,10)<e.length)},additionalProperties:[["[[PrimitiveValue]]",e]]})}),n.add("object","regexp",function(t){return this._formatObject(t,{value:String(t)})}),n.add("number",function(t){return 0===t&&0>1/t?"-0":String(t)}),n.add("string",function(t){return"'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'"}),n.add("object",function(t){return this._formatObject(t)}),n.add("object","arguments",function(t){return this._formatObject(t,{prefix:"Arguments",formatPropertyName:function(t){return t.match(/\d+/)?void 0:this.formatPropertyName(t)},brackets:["[","]"]})}),n.add("object","array",function(t){return this._formatObject(t,{formatPropertyName:function(t){return t.match(/\d+/)?void 0:this.formatPropertyName(t)},brackets:["[","]"]})}),n.add("object","date",function(t){return this._formatObject(t,{value:o(t,this.isUTCdate)})}),n.add("function",function(t){return this._formatObject(t,{additionalProperties:[["name",n.functionName(t)]]})}),n.add("object","error",function(t){return this._formatObject(t,{prefix:t.name,additionalProperties:[["message",t.message]]})}),n.add("object","buffer",n.generateFunctionForIndexedArray("length","Buffer",2)),n.add("object","array-buffer",n.generateFunctionForIndexedArray("byteLength","ArrayBuffer",2)),n.add("object","typed-array","int8",n.generateFunctionForIndexedArray("length","Int8Array",2)),n.add("object","typed-array","uint8",n.generateFunctionForIndexedArray("length","Uint8Array",2)),n.add("object","typed-array","uint8clamped",n.generateFunctionForIndexedArray("length","Uint8ClampedArray",2)),n.add("object","typed-array","int16",n.generateFunctionForIndexedArray("length","Int16Array",4)),n.add("object","typed-array","uint16",n.generateFunctionForIndexedArray("length","Uint16Array",4)),n.add("object","typed-array","int32",n.generateFunctionForIndexedArray("length","Int32Array",8)),n.add("object","typed-array","uint32",n.generateFunctionForIndexedArray("length","Uint32Array",8)),n.add("object","promise",function(){return"[Promise]"}),n.add("object","xhr",function(){return"[XMLHttpRequest]"}),n.add("object","html-element",function(t){return t.outerHTML}),n.add("object","html-element","#text",function(t){return t.nodeValue}),n.add("object","html-element","#document",function(t){return t.documentElement.outerHTML}),n.add("object","host",function(){return"[Host]"}),n.add("object","set",function(t){var e=t.values(),r=0;this.seen.push(t);for(var a=[],n=e.next();!n.done;){var o=n.value,i=this.format(o);r+=i.length,a.push(i),n=e.next()}return this.seen.pop(),0===a.length?"Set {}":r<=this.maxLineLength?"Set { "+a.join(this.propSep+" ")+" }":"Set {\n"+a.map(c.addSpaces).join(this.propSep+"\n")+"\n}"}),n.add("object","map",function(t){var e=t.entries(),r=0;this.seen.push(t);for(var a=[],n=e.next();!n.done;){var o,i=n.value,s=this.format(i[0]),u=this.format(i[1]);o=s.length+u.length+4<=this.maxLineLength?s+" => "+u:s+" =>\n"+u,r+=s.length+u.length+4,a.push(o),n=e.next()}return this.seen.pop(),0===a.length?"Map {}":r<=this.maxLineLength?"Map { "+a.join(this.propSep+" ")+" }":"Map {\n"+a.map(c.addSpaces).join(this.propSep+"\n")+"\n}"}),n.prototype.defaultFormat=n.prototype._format_object,i.Formatter=n,e.exports=i},{24:24,25:25}],24:[function(t,e,r){function a(t){return t.split("\n").map(function(t){return" "+t}).join("\n")}function n(t,e,r){t=String(t);var a=!1;if(0>e&&(a=!0,e=-e),t.length<e){var n=new Array(e-t.length+1).join(r);return a?t+n:n+t}return t}e.exports={addSpaces:a,pad:n,pad0:function(t,e){return n(t,e,"0")}}},{}],25:[function(t,e,r){function a(t,e,r){this.type=t,this.cls=e,this.sub=r}function n(){this.checks=[]}function o(t){return c.getType(t)}var i=Object.prototype.toString,s=t(26);n.prototype={add:function(t){return this.checks.push(t),this},addTypeOf:function(t,e){return this.add(function(r,n){return n===t?new a(e):void 0})},addClass:function(t,e,r){return this.add(function(n,o,i){return i===t?new a(s.OBJECT,e,r):void 0})},getType:function(t){for(var e=typeof t,r=i.call(t),a=0,n=this.checks.length;n>a;a++){var o=this.checks[a].call(this,t,e,r);if("undefined"!=typeof o)return o}}};var c=new n;c.addTypeOf(s.NUMBER,s.NUMBER).addTypeOf(s.UNDEFINED,s.UNDEFINED).addTypeOf(s.STRING,s.STRING).addTypeOf(s.BOOLEAN,s.BOOLEAN).addTypeOf(s.FUNCTION,s.FUNCTION).addTypeOf(s.SYMBOL,s.SYMBOL).add(function(t,e){return null===t?new a(s.NULL):void 0}).addClass("[object String]",s.STRING).addClass("[object Boolean]",s.BOOLEAN).addClass("[object Number]",s.NUMBER).addClass("[object Array]",s.ARRAY).addClass("[object RegExp]",s.REGEXP).addClass("[object Error]",s.ERROR).addClass("[object Date]",s.DATE).addClass("[object Arguments]",s.ARGUMENTS).addClass("[object Math]").addClass("[object JSON]").addClass("[object ArrayBuffer]",s.ARRAY_BUFFER).addClass("[object Int8Array]",s.TYPED_ARRAY,"int8").addClass("[object Uint8Array]",s.TYPED_ARRAY,"uint8").addClass("[object Uint8ClampedArray]",s.TYPED_ARRAY,"uint8clamped").addClass("[object Int16Array]",s.TYPED_ARRAY,"int16").addClass("[object Uint16Array]",s.TYPED_ARRAY,"uint16").addClass("[object Int32Array]",s.TYPED_ARRAY,"int32").addClass("[object Uint32Array]",s.TYPED_ARRAY,"uint32").addClass("[object Float32Array]",s.TYPED_ARRAY,"float32").addClass("[object Float64Array]",s.TYPED_ARRAY,"float64").addClass("[object DataView]",s.DATA_VIEW).addClass("[object Map]",s.MAP).addClass("[object WeakMap]",s.WEAK_MAP).addClass("[object Set]",s.SET).addClass("[object WeakSet]",s.WEAK_SET).addClass("[object Promise]",s.PROMISE).addClass("[object Blob]",s.BLOB).addClass("[object File]",s.FILE).addClass("[object FileList]",s.FILE_LIST).addClass("[object XMLHttpRequest]",s.XHR).add(function(t){return typeof Promise===s.FUNCTION&&t instanceof Promise||typeof t.then===s.FUNCTION?new a(s.OBJECT,s.PROMISE):void 0}).add(function(t){return"undefined"!=typeof Buffer&&t instanceof Buffer?new a(s.OBJECT,s.BUFFER):void 0}).add(function(t){return"undefined"!=typeof Node&&t instanceof Node?new a(s.OBJECT,s.HTML_ELEMENT,t.nodeName):void 0}).add(function(t){return t.Boolean===Boolean&&t.Number===Number&&t.String===String&&t.Date===Date?new a(s.OBJECT,s.HOST):void 0}).add(function(){return new a(s.OBJECT)}),o.checker=c,o.TypeChecker=n,o.Type=a,Object.keys(s).forEach(function(t){o[t]=s[t]}),e.exports=o},{26:26}],26:[function(t,e,r){var a={NUMBER:"number",UNDEFINED:"undefined",STRING:"string",BOOLEAN:"boolean",OBJECT:"object",FUNCTION:"function",NULL:"null",ARRAY:"array",REGEXP:"regexp",DATE:"date",ERROR:"error",ARGUMENTS:"arguments",SYMBOL:"symbol",ARRAY_BUFFER:"array-buffer",TYPED_ARRAY:"typed-array",DATA_VIEW:"data-view",MAP:"map",SET:"set",WEAK_SET:"weak-set",WEAK_MAP:"weak-map",PROMISE:"promise",BUFFER:"buffer",HTML_ELEMENT:"html-element",HTML_ELEMENT_TEXT:"html-element-text",DOCUMENT:"document",WINDOW:"window",FILE:"file",FILE_LIST:"file-list",BLOB:"blob",HOST:"host",XHR:"xhr"};e.exports=a},{}]},{},[1]),t}); | ||
!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof module&&module.exports?module.exports=e():(t.Should=e(),Object.defineProperty(t,"should",{enumerable:!1,configurable:!0,value:t.Should}))}(this,function(){var t,e=null;return function r(t,a,n){function o(s,c){if(!a[s]){if(!t[s]){var u="function"==typeof e&&e;if(!c&&u)return u(s,!0);if(i)return i(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var f=a[s]={exports:{}};t[s][0].call(f.exports,function(e){var r=t[s][1][e];return o(r?r:e)},f,f.exports,r,t,a,n)}return a[s].exports}for(var i="function"==typeof e&&e,s=0;s<n.length;s++)o(n[s]);return o}({1:[function(e,r,a){t=e(2)},{2:2}],2:[function(t,e,r){var a=t(19),n=Object.prototype,o="should";try{var i=a.extend(o,n);a._prevShould=i}catch(s){}e.exports=a},{19:19}],3:[function(t,e,r){function a(t){return s+t}function n(t){return t.split("\n").map(a).join("\n")}var o=t(20),i=function(t){if(o.merge(this,t),t.message||Object.defineProperty(this,"message",{get:function(){return this._message||(this._message=this.generateMessage(),this.generatedMessage=!0),this._message},configurable:!0,enumerable:!1}),Error.captureStackTrace)Error.captureStackTrace(this,this.stackStartFunction);else{var e=new Error;if(e.stack){var r=e.stack;if(this.stackStartFunction){var a=o.functionName(this.stackStartFunction),n=r.indexOf("\n"+a);if(n>=0){var i=r.indexOf("\n",n+1);r=r.substring(i+1)}}this.stack=r}}},s=" ";i.prototype=Object.create(Error.prototype,{name:{value:"AssertionError"},generateMessage:{value:function(){if(!this.operator&&this.previous)return this.previous.message;var t=o.format(this.actual),e="expected"in this?" "+o.format(this.expected):"",r="details"in this&&this.details?" ("+this.details+")":"",a=this.previous?"\n"+n(this.previous.message):"";return"expected "+t+(this.negate?" not ":" ")+this.operator+e+r+a}}}),e.exports=i},{20:20}],4:[function(t,e,r){function a(t){this.obj=t,this.anyOne=!1,this.negate=!1,this.params={actual:t}}function n(){a.apply(this,arguments)}var o=t(3);a.prototype={constructor:a,assert:function(t){if(t)return this;var e=this.params;throw"obj"in e&&!("actual"in e)?e.actual=e.obj:"obj"in e||"actual"in e||(e.actual=this.obj),e.stackStartFunction=e.stackStartFunction||this.assert,e.negate=this.negate,e.assertion=this,new o(e)},fail:function(){return this.assert(!1)}},n.prototype.then=function(t,e){return this.obj.then(t,e)},a.add=function(t,e){Object.defineProperty(a.prototype,t,{enumerable:!0,configurable:!0,value:function(){var r=new a(this.obj,this,t);r.anyOne=this.anyOne;try{e.apply(r,arguments)}catch(n){if(n instanceof o){if(this.negate)return this.obj=r.obj,this.negate=!1,this;r!==n.assertion&&(r.params.previous=n),r.negate=!1,r.fail()}throw n}return this.negate&&(r.negate=!0,r.params.details="false negative fail",r.fail()),this.params.operator||(this.params=r.params),this.obj=r.obj,this.negate=!1,this}}),Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,value:function(){var e=arguments;return this.obj=this.obj.then(function(r){return r[t].apply(r,e)}),this}})},a.addChain=function(t,e){e=e||function(){},Object.defineProperty(a.prototype,t,{get:function(){return e.call(this),this},enumerable:!0}),Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,get:function(){return this.obj=this.obj.then(function(e){return e[t]}),this}})},a.alias=function(t,e){var r=Object.getOwnPropertyDescriptor(a.prototype,t);if(!r)throw new Error("Alias "+t+" -> "+e+" could not be created as "+t+" not defined");Object.defineProperty(a.prototype,e,r);var o=Object.getOwnPropertyDescriptor(n.prototype,t);o&&Object.defineProperty(n.prototype,e,o)},a.addChain("not",function(){this.negate=!this.negate}),a.addChain("any",function(){this.anyOne=!0}),e.exports=a,e.exports.PromisedAssertion=n},{3:3}],5:[function(t,e,r){var a=t(23).Formatter,n={checkProtoEql:!1,getFormatter:function(t){return new a(t||n)}};e.exports=n},{23:23}],6:[function(t,e,r){function a(t,e,r,n,o){var i=new s(t);i.params={operator:n,expected:e,message:r,stackStartFunction:o||a},i.fail()}function n(t,e){t||a(t,!0,e,"==",l.ok)}function o(t,e){return t&&e?"[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e?!0:e.call({},t)===!0:!1}function i(t,e,r,n){var i;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+")":".")+(n?" "+n:"."),t&&!i&&a(i,r,"Missing expected exception"+n),!t&&o(i,r)&&a(i,r,"Got unwanted exception"+n),t&&i&&r&&!o(i,r)||!t&&i)throw i}var s=t(4),c=t(22),u=Array.prototype.slice,l=e.exports=n;l.fail=a,l.ok=n,l.equal=function(t,e,r){t!=e&&a(t,e,r,"==",l.equal)},l.notEqual=function(t,e,r){t==e&&a(t,e,r,"!=",l.notEqual)},l.deepEqual=function(t,e,r){c(t,e).result||a(t,e,r,"deepEqual",l.deepEqual)},l.notDeepEqual=function(t,e,r){c(t,e).result&&a(t,e,r,"notDeepEqual",l.notDeepEqual)},l.strictEqual=function(t,e,r){t!==e&&a(t,e,r,"===",l.strictEqual)},l.notStrictEqual=function(t,e,r){t===e&&a(t,e,r,"!==",l.notStrictEqual)},l["throws"]=function(){i.apply(this,[!0].concat(u.call(arguments)))},l.doesNotThrow=function(){i.apply(this,[!1].concat(u.call(arguments)))},l.ifError=function(t){if(t)throw t}},{22:22,4:4}],7:[function(t,e,r){var a=t(20),n=t(6),o=t(3);e.exports=function(t){var e=t.format;a.merge(t,n),t.exist=t.exists=function(r,a){if(null==r)throw new o({message:a||"expected "+e(r)+" to exist",stackStartFunction:t.exist})},t.not={},t.not.exist=t.not.exists=function(r,a){if(null!=r)throw new o({message:a||"expected "+e(r)+" to not exist",stackStartFunction:t.not.exist})}}},{20:20,3:3,6:6}],8:[function(t,e,r){e.exports=function(t,e){e.add("true",function(t){this.is.exactly(!0,t)}),e.alias("true","True"),e.add("false",function(t){this.is.exactly(!1,t)}),e.alias("false","False"),e.add("ok",function(){this.params={operator:"to be truthy"},this.assert(this.obj)})}},{}],9:[function(t,e,r){e.exports=function(t,e){["an","of","a","and","be","has","have","with","is","which","the","it"].forEach(function(t){e.addChain(t)})}},{}],10:[function(t,e,r){var a=t(20),n=t(22);e.exports=function(t,e){var r=t.format;e.add("containEql",function(t){this.params={operator:"to contain "+r(t)},this.is.not["null"]().and.not.undefined();var e=this.obj;"string"==typeof e?this.assert(e.indexOf(String(t))>=0):a.isIndexable(e)?this.assert(a.some(e,function(e){return n(e,t).result})):this.have.properties(t)}),e.add("containDeepOrdered",function(e){this.params={operator:"to contain "+r(e)};var n=this.obj;if("string"==typeof n)this.is.equal(String(e));else if(a.isIndexable(n)&&a.isIndexable(e)){for(var o=0,i=0,s=a.length(n),c=a.length(e);s>o&&c>i;o++)try{t(n[o]).containDeepOrdered(e[i]),i++}catch(u){if(u instanceof t.AssertionError)continue;throw u}this.assert(i===c)}else null!=n&&null!=e&&"object"==typeof n&&"object"==typeof e?(a.forEach(e,function(e,r){t(n[r]).containDeepOrdered(e)}),a.isEmptyObject(e)&&this.eql(e)):this.eql(e)}),e.add("containDeep",function(e){this.params={operator:"to contain "+r(e)};var n=this.obj;if("string"==typeof n)this.is.equal(String(e));else if(a.isIndexable(n)&&a.isIndexable(e)){var o={};a.forEach(e,function(e){this.assert(a.some(n,function(r,a){if(a in o)return!1;try{return t(r).containDeep(e),o[a]=!0,!0}catch(n){if(n instanceof t.AssertionError)return!1;throw n}}))},this)}else null!=n&&null!=e&&"object"==typeof n&&"object"==typeof e?(a.forEach(e,function(e,r){t(n[r]).containDeep(e)}),a.isEmptyObject(e)&&this.eql(e)):this.eql(e)})}},{20:20,22:22}],11:[function(t,e,r){function a(t,e,r){return((t.path.length>0?"at "+t.path.map(i.formatProp).join(" -> "):"")+(t.a===e?"":", A has "+i.format(t.a))+(t.b===r?"":" and B has "+i.format(t.b))+(t.showReason?" because "+t.reason:"")).trim()}var n=t(22),o=t(25),i=t(20);e.exports=function(t,e){function r(r,a,n){e.add(r,function(e){1!==arguments.length?e=Array.prototype.slice.call(arguments):t(e).be.Array(),this.params={operator:a,expected:e};var r=this.obj,o=!1;i.forEach(e,function(e){try{return t(e)[n](r),o=!0,!1}catch(a){if(a instanceof t.AssertionError)return;throw a}}),this.assert(o)})}e.add("eql",function(e,r){this.params={operator:"to equal",expected:e,message:r};var i=n(this.obj,e,t.config);this.params.details=i.result?"":a(i,this.obj,e),this.params.showDiff=n(o(this.obj),o(e)).result,this.assert(i.result)}),e.add("equal",function(t,e){this.params={operator:"to be",expected:t,message:e},this.params.showDiff=n(o(this.obj),o(t)).result,this.assert(t===this.obj)}),e.alias("equal","exactly"),e.alias("eql","deepEqual"),r("equalOneOf","to be equals one of","equal"),r("oneOf","to be one of","eql")}},{20:20,22:22,25:25}],12:[function(t,e,r){var a=t(20);e.exports=function(t,e){var r=t.format;e.add("throw",function(e,n){var o=this.obj,i={},s="",c=!1;if(a.isGeneratorFunction(o))return t(o())["throw"](e,n);if(a.isGeneratorObject(o))return t(o.next.bind(o))["throw"](e,n);this.is.a.Function();var u=!0;try{o()}catch(l){c=!0,i=l}if(c)if(e){if("string"==typeof e)u=e==i.message;else if(e instanceof RegExp)u=e.test(i.message);else if("function"==typeof e)u=i instanceof e;else if(null!=e)try{t(i).match(e)}catch(l){if(!(l instanceof t.AssertionError))throw l;s=": "+l.message,u=!1}if(u){if("function"==typeof e&&n)try{t(i).match(n)}catch(l){if(!(l instanceof t.AssertionError))throw l;s=": "+l.message,u=!1}}else"string"==typeof e||e instanceof RegExp?s=" with a message matching "+r(e)+", but got '"+i.message+"'":"function"==typeof e&&(s=" of type "+a.functionName(e)+", but got "+a.functionName(i.constructor))}else s=" (got "+r(i)+")";this.params={operator:"to throw exception"+s},this.assert(c),this.assert(u)}),e.alias("throw","throwError")}},{20:20}],13:[function(t,e,r){var a=t(20),n=t(22);e.exports=function(t,e){var r=t.format;e.add("match",function(e,o){if(this.params={operator:"to match "+r(e),message:o},!n(this.obj,e).result)if(e instanceof RegExp){if("string"==typeof this.obj)this.assert(e.exec(this.obj));else if(a.isIndexable(this.obj))a.forEach(this.obj,function(t){this.assert(e.exec(t))},this);else if(null!=this.obj&&"object"==typeof this.obj){var i=[],s=[];a.forEach(this.obj,function(t,n){e.exec(t)?s.push(a.formatProp(n)):i.push(a.formatProp(n)+" ("+r(t)+")")},this),i.length&&(this.params.operator+="\n not matched properties: "+i.join(", ")),s.length&&(this.params.operator+="\n matched properties: "+s.join(", ")),this.assert(0===i.length)}}else if("function"==typeof e){var c;c=e(this.obj),"boolean"==typeof c&&this.assert(c)}else null!=e&&null!=this.obj&&"object"==typeof e&&"object"==typeof this.obj?(i=[],s=[],a.forEach(e,function(e,n){try{t(this.obj).have.property(n).which.match(e),s.push(a.formatProp(n))}catch(o){if(!(o instanceof t.AssertionError))throw o;i.push(a.formatProp(n)+" ("+r(this.obj[n])+")")}},this),i.length&&(this.params.operator+="\n not matched properties: "+i.join(", ")),s.length&&(this.params.operator+="\n matched properties: "+s.join(", ")),this.assert(0===i.length)):this.assert(!1)}),e.add("matchEach",function(e,n){this.params={operator:"to match each "+r(e),message:n},a.forEach(this.obj,function(r){t(r).match(e)},this)}),e.add("matchAny",function(e,n){this.params={operator:"to match any "+r(e),message:n},this.assert(a.some(this.obj,function(r){try{return t(r).match(e),!0}catch(a){if(a instanceof t.AssertionError)return!1;throw a}}))}),e.alias("matchAny","matchSome"),e.alias("matchEach","matchEvery")}},{20:20,22:22}],14:[function(t,e,r){e.exports=function(t,e){e.add("NaN",function(){this.params={operator:"to be NaN"},this.assert(this.obj!==this.obj)}),e.add("Infinity",function(){this.params={operator:"to be Infinity"},this.is.a.Number().and.not.a.NaN().and.assert(!isFinite(this.obj))}),e.add("within",function(t,e,r){this.params={operator:"to be within "+t+".."+e,message:r},this.assert(this.obj>=t&&this.obj<=e)}),e.add("approximately",function(t,e,r){this.params={operator:"to be approximately "+t+" ±"+e,message:r},this.assert(Math.abs(this.obj-t)<=e)}),e.add("above",function(t,e){this.params={operator:"to be above "+t,message:e},this.assert(this.obj>t)}),e.add("below",function(t,e){this.params={operator:"to be below "+t,message:e},this.assert(this.obj<t)}),e.alias("above","greaterThan"),e.alias("below","lessThan"),e.add("aboveOrEqual",function(t,e){this.params={operator:"to be above or equal"+t,message:e},this.assert(this.obj>=t)}),e.add("belowOrEqual",function(t,e){this.params={operator:"to be below or equal"+t,message:e},this.assert(this.obj<=t)}),e.alias("aboveOrEqual","greaterThanOrEqual"),e.alias("belowOrEqual","lessThanOrEqual")}},{}],15:[function(t,e,r){var a=t(20),n=t(4).PromisedAssertion,o=t(4);e.exports=function(t){o.add("Promise",function(){this.params={operator:"to be promise"};var e=this.obj;t(e).have.property("then").which.is.a.Function()}),o.prototype.fulfilled=function(){this.params={operator:"to be fulfilled"},t(this.obj).be.a.Promise();var e=this;return this.obj.then(function(t){return e.negate&&e.fail(),t},function(r){return e.negate||(e.params.operator+=", but it was rejected with "+t.format(r),e.fail()),r})},o.prototype.rejected=function(){this.params={operator:"to be rejected"},t(this.obj).be.a.Promise();var e=this;return this.obj.then(function(r){return e.negate||(e.params.operator+=", but it was fulfilled",0!=arguments.length&&(e.params.operator+=" with "+t.format(r)),e.fail()),r},function(t){return e.negate&&e.fail(),t})},o.prototype.fulfilledWith=function(e){this.params={operator:"to be fulfilled with "+t.format(e)},t(this.obj).be.a.Promise();var r=this;return this.obj.then(function(a){return r.negate&&r.fail(),t(a).eql(e),a},function(e){return r.negate||(r.params.operator+=", but it was rejected with "+t.format(e),r.fail()),e})},o.prototype.rejectedWith=function(e,r){this.params={operator:"to be rejected"},t(this.obj).be.a.Promise();var n=this;return this.obj.then(function(t){return n.negate||n.fail(),t},function(o){n.negate&&n.fail();var i=!0,s="";if("string"==typeof e)i=e===o.message;else if(e instanceof RegExp)i=e.test(o.message);else if("function"==typeof e)i=o instanceof e;else if(null!==e&&"object"==typeof e)try{t(o).match(e)}catch(c){if(!(c instanceof t.AssertionError))throw c;s=": "+c.message,i=!1}if(i){if("function"==typeof e&&r)try{t(o).match(r)}catch(c){if(!(c instanceof t.AssertionError))throw c;s=": "+c.message,i=!1}}else"string"==typeof e||e instanceof RegExp?s=" with a message matching "+t.format(e)+", but got '"+o.message+"'":"function"==typeof e&&(s=" of type "+a.functionName(e)+", but got "+a.functionName(o.constructor));return n.params.operator+=s,n.assert(i),o})},Object.defineProperty(o.prototype,"finally",{get:function(){t(this.obj).be.a.Promise();var e=this;return new n(this.obj.then(function(r){var a=t(r);return a.negate=e.negate,a.anyOne=e.anyOne,a}))}}),o.alias("finally","eventually")}},{20:20,4:4}],16:[function(t,e,r){var a=t(20),n=t(22),o=Array.prototype.slice;e.exports=function(t,e){function r(){var t={};if(arguments.length>1)t.names=o.call(arguments);else{var e=arguments[0];"string"==typeof e?t.names=[e]:a.isIndexable(e)?t.names=e:(t.names=Object.keys(e),t.values=e)}return t}var i=t.format;e.add("propertyWithDescriptor",function(e,r){this.params={actual:this.obj,operator:"to have own property with descriptor "+i(r)};var a=this.obj;this.have.ownProperty(e),t(Object.getOwnPropertyDescriptor(Object(a),e)).have.properties(r)}),e.add("enumerable",function(t,e){t=a.convertPropertyName(t),this.params={operator:"to have enumerable property "+a.formatProp(t)+(arguments.length>1?" equal to "+i(e):"")};var r={enumerable:!0};arguments.length>1&&(r.value=e),this.have.propertyWithDescriptor(t,r)}),e.add("enumerables",function(){var e=r.apply(null,arguments);this.params={operator:"to have enumerables "+e.names.map(a.formatProp)};var n=this.obj;e.names.forEach(function(e){t(n).have.enumerable(e)})}),e.add("property",function(t,e){if(t=a.convertPropertyName(t),arguments.length>1){var r={};r[t]=e,this.have.properties(r)}else this.have.properties(t);this.obj=this.obj[t]}),e.add("properties",function(t){var e={};arguments.length>1?t=o.call(arguments):Array.isArray(t)||("string"==typeof t||"symbol"==typeof t?t=[t]:(e=t,t=Object.keys(t)));var r=Object(this.obj),s=[];t.forEach(function(t){t in r||s.push(a.formatProp(t))});var c=s;0===c.length?c=t.map(a.formatProp):this.anyOne&&(c=t.filter(function(t){return s.indexOf(a.formatProp(t))<0}).map(a.formatProp));var u=(1===c.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+c.join(", ");this.params={obj:this.obj,operator:u},this.assert(0===s.length||this.anyOne&&s.length!=t.length);var l=Object.keys(e);if(l.length){var f=[];c=[],l.forEach(function(t){var o=e[t];n(r[t],o).result?c.push(a.formatProp(t)+" of "+i(o)):f.push(a.formatProp(t)+" of "+i(o)+" (got "+i(r[t])+")")}),(0!==f.length&&!this.anyOne||this.anyOne&&0===c.length)&&(c=f),u=(1===c.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+c.join(", "),this.params={obj:this.obj,operator:u},this.assert(0===f.length||this.anyOne&&f.length!=l.length)}}),e.add("length",function(t,e){this.have.property("length",t,e)}),e.alias("length","lengthOf");var s=Object.prototype.hasOwnProperty;e.add("ownProperty",function(t,e){t=a.convertPropertyName(t),this.params={actual:this.obj,operator:"to have own property "+a.formatProp(t),message:e},this.assert(s.call(this.obj,t)),this.obj=this.obj[t]}),e.alias("ownProperty","hasOwnProperty"),e.add("empty",function(){if(this.params={operator:"to be empty"},void 0!==a.length(this.obj))t(this.obj).have.property("length",0);else{var e=Object(this.obj);for(var r in e)t(this.obj).not.have.ownProperty(r)}},!0),e.add("keys",function(t){arguments.length>1?t=o.call(arguments):1===arguments.length&&"string"==typeof t?t=[t]:0===arguments.length&&(t=[]),t=t.map(String);var e=Object(this.obj),r=[];t.forEach(function(t){s.call(this.obj,t)||r.push(a.formatProp(t))},this);var n=[];Object.keys(e).forEach(function(e){t.indexOf(e)<0&&n.push(a.formatProp(e))});var i=0===t.length?"to be empty":"to have "+(1===t.length?"key ":"keys ");this.params={operator:i+t.map(a.formatProp).join(", ")},r.length>0&&(this.params.operator+="\n missing keys: "+r.join(", ")),n.length>0&&(this.params.operator+="\n extra keys: "+n.join(", ")),this.assert(0===r.length&&0===n.length)}),e.alias("keys","key"),e.add("propertyByPath",function(e){arguments.length>1?e=o.call(arguments):1===arguments.length&&"string"==typeof e?e=[e]:0===arguments.length&&(e=[]);var r=e.map(a.formatProp);e=e.map(String);for(var n,i=t(Object(this.obj)),s=[];e.length;)n=e.shift(),this.params={operator:"to have property by path "+r.join(", ")+" - failed on "+a.formatProp(n)},i=i.have.property(n),s.push(n);this.params={obj:this.obj,operator:"to have property by path "+r.join(", ")},this.obj=i.obj})}},{20:20,22:22}],17:[function(t,e,r){e.exports=function(t,e){e.add("startWith",function(e,r){this.params={operator:"to start with "+t.format(e),message:r},this.assert(0===this.obj.indexOf(e))}),e.add("endWith",function(e,r){this.params={operator:"to end with "+t.format(e),message:r},this.assert(this.obj.indexOf(e,this.obj.length-e.length)>=0)})}},{}],18:[function(t,e,r){var a=t(20);e.exports=function(t,e){e.add("Number",function(){this.params={operator:"to be a number"},this.have.type("number")}),e.add("arguments",function(){this.params={operator:"to be arguments"},this.have["class"]("Arguments")}),e.alias("arguments","Arguments"),e.add("type",function(e,r){this.params={operator:"to have type "+e,message:r},t(typeof this.obj).be.exactly(e)}),e.add("instanceof",function(t,e){this.params={operator:"to be an instance of "+a.functionName(t),message:e},this.assert(Object(this.obj)instanceof t)}),e.alias("instanceof","instanceOf"),e.add("Function",function(){this.params={operator:"to be a function"},this.have.type("function")}),e.add("Object",function(){this.params={operator:"to be an object"},this.is.not["null"]().and.have.type("object")}),e.add("String",function(){this.params={operator:"to be a string"},this.have.type("string")}),e.add("Array",function(){this.params={operator:"to be an array"},this.have["class"]("Array")}),e.add("Boolean",function(){this.params={operator:"to be a boolean"},this.have.type("boolean")}),e.add("Error",function(){this.params={operator:"to be an error"},this.have.instanceOf(Error)}),e.add("Date",function(){this.params={operator:"to be a date"},this.have.instanceOf(Date)}),e.add("null",function(){this.params={operator:"to be null"},this.assert(null===this.obj)}),e.alias("null","Null"),e.add("class",function(t){this.params={operator:"to have [[Class]] "+t},this.assert(Object.prototype.toString.call(this.obj)==="[object "+t+"]")}),e.alias("class","Class"),e.add("undefined",function(){this.params={operator:"to be undefined"},this.assert(void 0===this.obj)}),e.alias("undefined","Undefined"),e.add("iterable",function(){this.params={operator:"to be iterable"},t(this.obj).have.property(Symbol.iterator).which.is.a.Function()}),e.add("iterator",function(){this.params={operator:"to be iterator"},t(this.obj).have.property("next").which.is.a.Function()}),e.add("generator",function(){this.params={operator:"to be generator"},t(this.obj).be.iterable.and.iterator.and.it.is.equal(this.obj[Symbol.iterator]())})}},{20:20}],19:[function(t,e,r){function a(t){return new a.Assertion(t)}var n=t(20);a.AssertionError=t(3),a.Assertion=t(4),a.format=n.format,a.type=t(25),a.util=n,a.config=t(5),r=e.exports=a,a.extend=function(t,e){t=t||"should",e=e||Object.prototype;var r=Object.getOwnPropertyDescriptor(e,t);return Object.defineProperty(e,t,{set:function(){},get:function(){return a(n.isWrapperType(this)?this.valueOf():this)},configurable:!0}),{name:t,descriptor:r,proto:e}},a.noConflict=function(t){return t=t||a._prevShould,t&&(delete t.proto[t.name],t.descriptor&&Object.defineProperty(t.proto,t.name,t.descriptor)),a},a.use=function(t){return t(a,a.Assertion),this},a.use(t(7)).use(t(9)).use(t(8)).use(t(14)).use(t(11)).use(t(18)).use(t(17)).use(t(16)).use(t(12)).use(t(13)).use(t(10)).use(t(15))},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,20:20,25:25,3:3,4:4,5:5,7:7,8:8,9:9}],20:[function(t,e,r){var a=t(25),n=t(5);r.isWrapperType=function(t){return t instanceof Number||t instanceof String||t instanceof Boolean},r.merge=function(t,e){if(t&&e)for(var r in e)t[r]=e[r];return t};var o=Object.prototype.hasOwnProperty;r.forEach=function i(t,e,a){if(r.isGeneratorFunction(t))return i(t(),e,a);if(r.isGeneratorObject(t))for(var n=t.next();!n.done;){if(e.call(a,n.value,"value",t)===!1)return;n=t.next()}else for(var s in t)if(o.call(t,s)&&e.call(a,t[s],s,t)===!1)return},r.some=function(t,e,a){var n=!1;return r.forEach(t,function(r,o){return e.call(a,r,o,t)?(n=!0,!1):void 0},a),n},r.isEmptyObject=function(t){for(var e in t)if(o.call(t,e))return!1;return!0},r.isIndexable=function(t){var e=a(t);return e.type===a.OBJECT&&e.cls===a.ARRAY||e.type===a.OBJECT&&e.cls===a.BUFFER||e.type===a.OBJECT&&e.cls===a.ARGUMENTS||e.type===a.OBJECT&&e.cls===a.ARRAY_BUFFER||e.type===a.OBJECT&&e.cls===a.TYPED_ARRAY||e.type===a.OBJECT&&e.cls===a.DATA_VIEW||e.type===a.OBJECT&&e.cls===a.STRING||e.type===a.STRING},r.length=function(t){var e=a(t);switch(e.type){case a.STRING:return t.length;case a.OBJECT:switch(e.cls){case a.ARRAY_BUFFER:case a.TYPED_ARRAY:case a.DATA_VIEW:return t.byteLength;case a.ARRAY:case a.BUFFER:case a.ARGUMENTS:case a.FUNCTION:return t.length}}},r.convertPropertyName=function(t){return"symbol"==typeof t?t:String(t)},r.isGeneratorObject=function(t){return t?"function"==typeof t.next&&"function"==typeof t[Symbol.iterator]&&t[Symbol.iterator]()===t:!1},r.isGeneratorFunction=function(t){return"function"!=typeof t?!1:/^function\s*\*\s*/.test(t.toString())},r.format=function(t,e){return n.getFormatter(e).format(t)},r.functionName=t(23).Formatter.functionName,r.formatProp=function(t){return n.getFormatter().formatPropertyName(String(t))}},{23:23,25:25,5:5}],21:[function(t,e,r){e.exports=function(t){for(var e=arguments,r=1,a=e.length;a>r;r++)t=t.replace(/%s/,e[r]);return t}},{}],22:[function(t,e,r){function a(t,e,r,a,n){var o={result:t};return t||(o.path=e,o.reason=r,o.a=a,o.b=n),o}function n(t){return t.type+(t.cls?"("+t.cls+(t.sub?" "+t.sub:"")+")":"")}function o(t,e,r,i,h,p,d){function b(n,o){if(arguments.length>2){var i=Array.prototype.slice.call(arguments,2);o=c.apply(null,[o].concat(i))}var s=a(n,p,o,t,e);return!n&&r.collectAllFails&&d.push(s),s}function m(a){return o(t[a],e[a],r,i,h,p.concat([a]),d)}function y(t,e){return o(t,e,r,i,h,p,d)}var g=l;if(t===e)return b(0!==t||1/t==1/e||r.plusZeroAndMinusZeroEqual,f.PLUS_0_AND_MINUS_0);var j,v,E,A=s(t),O=s(e),S=A.type!==O.type||A.cls!==O.cls;if(S||r.checkSubType&&A.sub!==O.sub||!r.checkSubType)return b(!1,f.DIFFERENT_TYPES,n(A),n(O));switch(A.type){case"number":return t!==t?b(e!==e,f.NAN_NUMBER):b(t===e,f.EQUALITY);case"symbol":case"boolean":case"string":return b(t===e,f.EQUALITY);case"function":if(g=y(t.toString(),e.toString()),!g.result&&(g.reason=f.FUNCTION_SOURCES,!r.collectAllFails))return g;break;case"object":switch(A.cls){case"regexp":for(v=["source","global","multiline","lastIndex","ignoreCase"];v.length;)if(g=m(v.shift()),!g.result&&!r.collectAllFails)return g;break;case"date":if(+t!==+e&&(g=b(!1,f.EQUALITY),!g.result&&!r.collectAllFails))return g;break;case"number":case"boolean":case"string":if(g=y(t.valueOf(),e.valueOf()),!g.result&&(g.reason=f.WRAPPED_VALUE,!r.collectAllFails))return g;break;case"buffer":if(g=m("length"),!g.result&&!r.collectAllFails)return g;for(j=t.length;j--;)if(g=m(j),!g.result&&!r.collectAllFails)return g;return l;case"error":for(v=["name","message"];v.length;)if(g=m(v.shift()),!g.result&&!r.collectAllFails)return g;break;case"array":case"arguments":case"typed-array":if(g=m("length"),!g.result&&!r.collectAllFails)return g;break;case"array-buffer":if(g=m("byteLength"),!g.result&&!r.collectAllFails)return g;break;case"map":case"set":if(g=m("size"),!g.result&&!r.collectAllFails)return g;i.push(t),h.push(e);for(var P=t.entries(),x=P.next();!x.done;){if(E=x.value[0],"object"!=s(E).type){if(e.has(E)){if("map"==A.cls){var T=e.get(E);if(g=y(x.value[1],T),!g.result&&(g.a=x.value,g.b=T,g.reason=f.MAP_VALUE_EQUALITY,!r.collectAllFails))break}}else if(g=b(!1,f.SET_MAP_MISSING_KEY),g.a=E,g.b=E,!r.collectAllFails)break}else for(var N=e.entries(),F=N.next();!F.done;){if(g=y(x.value[0],F.value[0]),g.result){if("map"==A.cls&&(g=y(x.value[1],F.value[1]),g.result||(g.a=x.value,g.b=F.value,g.reason=f.MAP_VALUE_EQUALITY)),!r.collectAllFails)break}else g.reason=f.SET_MAP_MISSING_KEY,g.a=E,g.b=E;F=N.next()}if(!g.result&&!r.collectAllFails)break;x=P.next()}if(i.pop(),h.pop(),!g.result&&(g.reason=f.SET_MAP_MISSING_ENTRY,!r.collectAllFails))return g}}for(j=i.length;j--;)if(i[j]===t)return b(h[j]===e,f.CIRCULAR_VALUES);i.push(t),h.push(e);for(E in e)if(u.call(e,E)){if(g=b(u.call(t,E),f.MISSING_KEY,"A",E),!g.result&&!r.collectAllFails)break;if(g.result&&(g=m(E),!g.result&&!r.collectAllFails))break}if(g.result||r.collectAllFails)for(E in t)if(u.call(t,E)&&(g=b(u.call(e,E),f.MISSING_KEY,"B",E),!g.result&&!r.collectAllFails))return g;if(i.pop(),h.pop(),!g.result&&!r.collectAllFails)return g;var w=!1,_=!1;return!r.checkProtoEql||(Object.getPrototypeOf&&(w=Object.getPrototypeOf(t)===Object.getPrototypeOf(e),_=!0),!_||w||(g=b(w,f.EQUALITY_PROTOTYPE),g.showReason=!0,g.result||r.collectAllFails))?l:g}function i(t,e,r){r=r||{};var a={checkProtoEql:"boolean"!=typeof r.checkProtoEql?h.checkProtoEql:r.checkProtoEql,checkSubType:"boolean"!=typeof r.checkSubType?h.checkSubType:r.checkSubType,plusZeroAndMinusZeroEqual:"boolean"!=typeof r.plusZeroAndMinusZeroEqual?h.plusZeroAndMinusZeroEqual:r.plusZeroAndMinusZeroEqual},n=[],i=o(t,e,a,[],[],[],n);return r.collectAllFails?n:i}var s=t(25),c=t(21),u=Object.prototype.hasOwnProperty,l=a(!0),f={PLUS_0_AND_MINUS_0:"+0 is not equal to -0",DIFFERENT_TYPES:"A has type %s and B has type %s",NAN_NUMBER:"NaN is not equal to any number",EQUALITY:"A is not equal to B",EQUALITY_PROTOTYPE:"A and B have different prototypes",WRAPPED_VALUE:"A wrapped value is not equal to B wrapped value",FUNCTION_SOURCES:"function A is not equal to B by source code value (via .toString call)",MISSING_KEY:"%s has no key %s",CIRCULAR_VALUES:"A has circular reference that was visited not in the same time as B",SET_MAP_MISSING_KEY:"Set/Map missing key",MAP_VALUE_EQUALITY:"Values of the same key in A and B is not equal"},h={checkProtoEql:!0,checkSubType:!0,plusZeroAndMinusZeroEqual:!1};e.exports=i,i.r=f},{21:21,25:25}],23:[function(t,e,r){function a(t){return function(e){var r=t(e);return r.sort(),r}}function n(t){t=t||{},this.seen=[],this.keys=a(t.keys===!1?Object.getOwnPropertyNames:Object.keys),this.maxLineLength="number"==typeof t.maxLineLength?t.maxLineLength:60,this.propSep=t.propSep||",",this.isUTCdate=!!t.isUTCdate}function o(t,e){var r=e?"UTC":"",a=t["get"+r+"FullYear"]()+"-"+c.pad0(t["get"+r+"Month"]()+1,2)+"-"+c.pad0(t["get"+r+"Date"](),2),n=c.pad0(t["get"+r+"Hours"](),2)+":"+c.pad0(t["get"+r+"Minutes"](),2)+":"+c.pad0(t["get"+r+"Seconds"](),2)+"."+c.pad0(t["get"+r+"Milliseconds"](),3),o=t.getTimezoneOffset(),i=Math.abs(o),s=Math.floor(i/60),u=i-60*s,l=(0>o?"+":"-")+c.pad0(s,2)+c.pad0(u,2);return a+" "+n+(e?"":" "+l)}function i(t,e){return new n(e).format(t)}var s=t(25),c=t(24);n.prototype={constructor:n,format:function(t){var e=s(t),r=e.type,a=e.type;e.cls&&(r+="_"+e.cls,a+="_"+e.cls),e.sub&&(a+="_"+e.sub);var n=this["_format_"+a]||this["_format_"+r]||this["_format_"+e.type]||this.defaultFormat;return n.call(this,t).trim()},_formatObject:function(t,e){e=e||{};var r=e.keys||this.keys(t),a=0,o=e.formatPropertyValue||this.formatPropertyValue,i=e.formatPropertyName||this.formatPropertyName,s=e.keyValueSep||": ",u=e.keyFilter||function(){return!0};this.seen.push(t);var l=[];r.forEach(function(e){if(u(e)){var r=i.call(this,e),n=(r?r+s:"")+o.call(this,t,e);a+=n.length,l.push(n)}},this),this.seen.pop(),(e.additionalProperties||[]).forEach(function(t){var e=t[0]+s+this.format(t[1]);a+=e.length,l.push(e)},this);var f=e.prefix||n.constructorName(t)||"";f.length>0&&(f+=" ");var h,p;Array.isArray(e.brackets)?(h=e.brackets&&e.brackets[0],p=e.brackets&&e.brackets[1]):(h="{",p="}");var d=e.value||"";return 0===l.length?d||f+h+p:a<=this.maxLineLength?f+h+" "+(d?d+" ":"")+l.join(this.propSep+" ")+" "+p:f+h+"\n"+(d?" "+d+"\n":"")+l.map(c.addSpaces).join(this.propSep+"\n")+"\n"+p},formatObject:function(t,e,r){r=r||this.keys(t);var a=0;return this.seen.push(t),r=r.map(function(e){var r=this.formatProperty(t,e);return a+=r.length,r},this),this.seen.pop(),0===r.length?"{}":a<=this.maxLineLength?"{ "+(e?e+" ":"")+r.join(this.propSep+" ")+" }":"{\n"+(e?" "+e+"\n":"")+r.map(c.addSpaces).join(this.propSep+"\n")+"\n}"},formatPropertyName:function(t){return t.match(/^[a-zA-Z_$][a-zA-Z_$0-9]*$/)?t:this.format(t)},formatProperty:function(t,e){var r=n.getPropertyDescriptor(t,e),a=this.formatPropertyName(e),o=r.get&&r.set?"[Getter/Setter]":r.get?"[Getter]":r.set?"[Setter]":this.seen.indexOf(r.value)>=0?"[Circular]":this.format(r.value);return a+": "+o},formatPropertyValue:function(t,e){var r=n.getPropertyDescriptor(t,e),a=r.get&&r.set?"[Getter/Setter]":r.get?"[Getter]":r.set?"[Setter]":this.seen.indexOf(r.value)>=0?"[Circular]":this.format(r.value);return a}},n.add=function(t,e,r,a){var o=Array.prototype.slice.call(arguments);a=o.pop(),n.prototype["_format_"+o.join("_")]=a},n.formatObjectWithPrefix=function(t){return function(e){var r=t.call(this,e),a=this.keys(e);return 0==a.length?r:this.formatObject(e,r,a)}};var u=/^\s*function\s*(\S*)\s*\(/;n.functionName=function(t){if(t.name)return t.name;var e=t.toString().match(u);if(null===e)return"";var r=e[1];return r},n.constructorName=function(t){for(;t;){var e=Object.getOwnPropertyDescriptor(t,"constructor");if(void 0!==e&&"function"==typeof e.value){var r=n.functionName(e.value);if(""!==r)return r}t=Object.getPrototypeOf(t)}},n.getPropertyDescriptor=function(t,e){var r;try{r=Object.getOwnPropertyDescriptor(t,e)||{value:t[e] | ||
}}catch(a){r={value:a}}return r},n.generateFunctionForIndexedArray=function(t,e,r){return function(a){for(var n=this.byteArrayMaxLength||50,o=a[t],i=[],s=0,u=0;n>u&&o>u;u++){var l=a[u]||0,f=c.pad0(l.toString(16),r);s+=f.length,i.push(f)}var h=a.constructor.name||e||"";return h&&(h+=" "),0===i.length?h+"[]":s<=this.maxLineLength?h+"[ "+i.join(this.propSep+" ")+" ]":h+"[\n"+i.map(c.addSpaces).join(this.propSep+"\n")+"\n]"}},n.add("undefined",function(){return"undefined"}),n.add("null",function(){return"null"}),n.add("boolean",function(t){return t?"true":"false"}),n.add("symbol",function(t){return t.toString()}),["number","boolean"].forEach(function(t){n.add("object",t,function(t){return this._formatObject(t,{additionalProperties:[["[[PrimitiveValue]]",t.valueOf()]]})})}),n.add("object","string",function(t){var e=t.valueOf();return this._formatObject(t,{keyFilter:function(t){return!(t.match(/\d+/)&&parseInt(t,10)<e.length)},additionalProperties:[["[[PrimitiveValue]]",e]]})}),n.add("object","regexp",function(t){return this._formatObject(t,{value:String(t)})}),n.add("number",function(t){return 0===t&&0>1/t?"-0":String(t)}),n.add("string",function(t){return"'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'"}),n.add("object",function(t){return this._formatObject(t)}),n.add("object","arguments",function(t){return this._formatObject(t,{prefix:"Arguments",formatPropertyName:function(t){return t.match(/\d+/)?void 0:this.formatPropertyName(t)},brackets:["[","]"]})}),n.add("object","array",function(t){return this._formatObject(t,{formatPropertyName:function(t){return t.match(/\d+/)?void 0:this.formatPropertyName(t)},brackets:["[","]"]})}),n.add("object","date",function(t){return this._formatObject(t,{value:o(t,this.isUTCdate)})}),n.add("function",function(t){return this._formatObject(t,{additionalProperties:[["name",n.functionName(t)]]})}),n.add("object","error",function(t){return this._formatObject(t,{prefix:t.name,additionalProperties:[["message",t.message]]})}),n.add("object","buffer",n.generateFunctionForIndexedArray("length","Buffer",2)),n.add("object","array-buffer",n.generateFunctionForIndexedArray("byteLength","ArrayBuffer",2)),n.add("object","typed-array","int8",n.generateFunctionForIndexedArray("length","Int8Array",2)),n.add("object","typed-array","uint8",n.generateFunctionForIndexedArray("length","Uint8Array",2)),n.add("object","typed-array","uint8clamped",n.generateFunctionForIndexedArray("length","Uint8ClampedArray",2)),n.add("object","typed-array","int16",n.generateFunctionForIndexedArray("length","Int16Array",4)),n.add("object","typed-array","uint16",n.generateFunctionForIndexedArray("length","Uint16Array",4)),n.add("object","typed-array","int32",n.generateFunctionForIndexedArray("length","Int32Array",8)),n.add("object","typed-array","uint32",n.generateFunctionForIndexedArray("length","Uint32Array",8)),n.add("object","promise",function(){return"[Promise]"}),n.add("object","xhr",function(){return"[XMLHttpRequest]"}),n.add("object","html-element",function(t){return t.outerHTML}),n.add("object","html-element","#text",function(t){return t.nodeValue}),n.add("object","html-element","#document",function(t){return t.documentElement.outerHTML}),n.add("object","host",function(){return"[Host]"}),n.add("object","set",function(t){var e=t.values(),r=0;this.seen.push(t);for(var a=[],n=e.next();!n.done;){var o=n.value,i=this.format(o);r+=i.length,a.push(i),n=e.next()}return this.seen.pop(),0===a.length?"Set {}":r<=this.maxLineLength?"Set { "+a.join(this.propSep+" ")+" }":"Set {\n"+a.map(c.addSpaces).join(this.propSep+"\n")+"\n}"}),n.add("object","map",function(t){var e=t.entries(),r=0;this.seen.push(t);for(var a=[],n=e.next();!n.done;){var o,i=n.value,s=this.format(i[0]),u=this.format(i[1]);o=s.length+u.length+4<=this.maxLineLength?s+" => "+u:s+" =>\n"+u,r+=s.length+u.length+4,a.push(o),n=e.next()}return this.seen.pop(),0===a.length?"Map {}":r<=this.maxLineLength?"Map { "+a.join(this.propSep+" ")+" }":"Map {\n"+a.map(c.addSpaces).join(this.propSep+"\n")+"\n}"}),n.prototype.defaultFormat=n.prototype._format_object,i.Formatter=n,e.exports=i},{24:24,25:25}],24:[function(t,e,r){function a(t){return t.split("\n").map(function(t){return" "+t}).join("\n")}function n(t,e,r){t=String(t);var a=!1;if(0>e&&(a=!0,e=-e),t.length<e){var n=new Array(e-t.length+1).join(r);return a?t+n:n+t}return t}e.exports={addSpaces:a,pad:n,pad0:function(t,e){return n(t,e,"0")}}},{}],25:[function(t,e,r){function a(t,e,r){this.type=t,this.cls=e,this.sub=r}function n(){this.checks=[]}function o(t){return c.getType(t)}var i=Object.prototype.toString,s=t(26);n.prototype={add:function(t){return this.checks.push(t),this},addTypeOf:function(t,e){return this.add(function(r,n){return n===t?new a(e):void 0})},addClass:function(t,e,r){return this.add(function(n,o,i){return i===t?new a(s.OBJECT,e,r):void 0})},getType:function(t){for(var e=typeof t,r=i.call(t),a=0,n=this.checks.length;n>a;a++){var o=this.checks[a].call(this,t,e,r);if("undefined"!=typeof o)return o}}};var c=new n;c.addTypeOf(s.NUMBER,s.NUMBER).addTypeOf(s.UNDEFINED,s.UNDEFINED).addTypeOf(s.STRING,s.STRING).addTypeOf(s.BOOLEAN,s.BOOLEAN).addTypeOf(s.FUNCTION,s.FUNCTION).addTypeOf(s.SYMBOL,s.SYMBOL).add(function(t,e){return null===t?new a(s.NULL):void 0}).addClass("[object String]",s.STRING).addClass("[object Boolean]",s.BOOLEAN).addClass("[object Number]",s.NUMBER).addClass("[object Array]",s.ARRAY).addClass("[object RegExp]",s.REGEXP).addClass("[object Error]",s.ERROR).addClass("[object Date]",s.DATE).addClass("[object Arguments]",s.ARGUMENTS).addClass("[object Math]").addClass("[object JSON]").addClass("[object ArrayBuffer]",s.ARRAY_BUFFER).addClass("[object Int8Array]",s.TYPED_ARRAY,"int8").addClass("[object Uint8Array]",s.TYPED_ARRAY,"uint8").addClass("[object Uint8ClampedArray]",s.TYPED_ARRAY,"uint8clamped").addClass("[object Int16Array]",s.TYPED_ARRAY,"int16").addClass("[object Uint16Array]",s.TYPED_ARRAY,"uint16").addClass("[object Int32Array]",s.TYPED_ARRAY,"int32").addClass("[object Uint32Array]",s.TYPED_ARRAY,"uint32").addClass("[object Float32Array]",s.TYPED_ARRAY,"float32").addClass("[object Float64Array]",s.TYPED_ARRAY,"float64").addClass("[object DataView]",s.DATA_VIEW).addClass("[object Map]",s.MAP).addClass("[object WeakMap]",s.WEAK_MAP).addClass("[object Set]",s.SET).addClass("[object WeakSet]",s.WEAK_SET).addClass("[object Promise]",s.PROMISE).addClass("[object Blob]",s.BLOB).addClass("[object File]",s.FILE).addClass("[object FileList]",s.FILE_LIST).addClass("[object XMLHttpRequest]",s.XHR).add(function(t){return typeof Promise===s.FUNCTION&&t instanceof Promise||typeof t.then===s.FUNCTION?new a(s.OBJECT,s.PROMISE):void 0}).add(function(t){return"undefined"!=typeof Buffer&&t instanceof Buffer?new a(s.OBJECT,s.BUFFER):void 0}).add(function(t){return"undefined"!=typeof Node&&t instanceof Node?new a(s.OBJECT,s.HTML_ELEMENT,t.nodeName):void 0}).add(function(t){return t.Boolean===Boolean&&t.Number===Number&&t.String===String&&t.Date===Date?new a(s.OBJECT,s.HOST):void 0}).add(function(){return new a(s.OBJECT)}),o.checker=c,o.TypeChecker=n,o.Type=a,Object.keys(s).forEach(function(t){o[t]=s[t]}),e.exports=o},{26:26}],26:[function(t,e,r){var a={NUMBER:"number",UNDEFINED:"undefined",STRING:"string",BOOLEAN:"boolean",OBJECT:"object",FUNCTION:"function",NULL:"null",ARRAY:"array",REGEXP:"regexp",DATE:"date",ERROR:"error",ARGUMENTS:"arguments",SYMBOL:"symbol",ARRAY_BUFFER:"array-buffer",TYPED_ARRAY:"typed-array",DATA_VIEW:"data-view",MAP:"map",SET:"set",WEAK_SET:"weak-set",WEAK_MAP:"weak-map",PROMISE:"promise",BUFFER:"buffer",HTML_ELEMENT:"html-element",HTML_ELEMENT_TEXT:"html-element-text",DOCUMENT:"document",WINDOW:"window",FILE:"file",FILE_LIST:"file-list",BLOB:"blob",HOST:"host",XHR:"xhr"};e.exports=a},{}]},{},[1]),t}); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
266679
6200
+ Addedshould-equal@0.8.0(transitive)
- Removedshould-equal@0.7.3(transitive)
Updatedshould-equal@0.8.0