hamjest
Version:
A library of composable matchers for defining meaningful and readable assertions in JavaScript.
1 lines • 282 kB
JavaScript
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).hamjest=e()}(function(){var B,e,t;return function o(a,s,c){function u(t,e){if(!s[t]){if(!a[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(l)return l(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[t]={exports:{}};a[t][0].call(i.exports,function(e){return u(a[t][1][e]||e)},i,i.exports,o,a,s,c)}return s[t].exports}for(var l="function"==typeof require&&require,e=0;e<c.length;e++)u(c[e]);return u}({1:[function(e,t,n){"use strict";t.exports=e("./lib/hamjest")},{"./lib/hamjest":6}],2:[function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.function.name"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/es.string.pad-end"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each"),e("core-js/modules/web.dom-collections.iterator");var o=e("lodash"),i=e("bluebird");function a(e,t){return"number"==typeof t&&isNaN(t)?"<NaN>":t}t.exports=function(){var n="";return{useJsonForObjects:!0,indentation:0,append:function(t){this.indentation&&(t=(""+t).replace("\n",o.padEnd("\n",this.indentation+1,"\t")));try{n+=t}catch(e){n+="[ "+r(t)+"]"}return this},indented:function(e){var t=this;this.indentation+=1;var n=e();return n&&o.isFunction(n.then)?i.resolve(n).finally(function(){--t.indentation}):(--this.indentation,n)},appendDescriptionOf:function(e){return e&&o.isFunction(e.describeTo)?e.describeTo(this):this.appendValue(e),this},appendValue:function(t){if(o.isUndefined(t))this.append("undefined");else if(o.isNull(t))this.append("null");else if(o.isString(t))this.append('"'),this.append(t),this.append('"');else if(o.isNumber(t))this.append("<"),this.append(t),this.append(">");else if(o.isArray(t))this.appendList("[",", ","]",t);else if((e=t)&&(o.isFunction(e.appendChild)&&o.isFunction(e.isEqualNode)&&!o.isUndefined(e.outerHTML)||o.isFunction(e.html)&&o.isFunction(e.text)))this.append("DOM node ").appendValue(o.isFunction(t.html)?t.html():t.outerHTML);else if(o.isFunction(t))this.append("Function"+(t.name?" "+t.name:""));else if(o.isRegExp(t))this.append(t.toString());else if(this.useJsonForObjects)try{this.append(JSON.stringify(t,a))}catch(e){var n=this.useJsonForObjects;this.useJsonForObjects=!1,this.appendNonJson(t),this.useJsonForObjects=n}else this.append(t);var e;return this},appendNonJson:function(e){var n=this;this.append("{");var r=!0;o.forEach(e,function(e,t){r||n.append(", "),r=!1,n.append(t).append(": "),n.appendValue(e)},this),this.append("}")},appendList:function(e,r,t,n){var i=this;return this.append(e),o.forEach(n,function(e,t){var n;0!==t&&i.append(r),i.appendDescriptionOf((n=e)&&o.isFunction(n.describeTo)?n:{describeTo:function(e){e.appendValue(n)}})},this),this.append(t),this},get:function(){return n}}}},{bluebird:61,"core-js/modules/es.array.for-each":179,"core-js/modules/es.array.iterator":182,"core-js/modules/es.function.name":189,"core-js/modules/es.object.to-string":193,"core-js/modules/es.promise":195,"core-js/modules/es.promise.finally":194,"core-js/modules/es.regexp.exec":198,"core-js/modules/es.regexp.to-string":199,"core-js/modules/es.string.iterator":201,"core-js/modules/es.string.pad-end":202,"core-js/modules/es.string.replace":203,"core-js/modules/es.symbol":208,"core-js/modules/es.symbol.description":206,"core-js/modules/es.symbol.iterator":207,"core-js/modules/web.dom-collections.for-each":209,"core-js/modules/web.dom-collections.iterator":210,lodash:212}],3:[function(e,t,n){(function(g){"use strict";function m(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||n(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.from"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.slice"),e("core-js/modules/es.function.name"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.iterator");var b=e("lodash"),w=e("assertion-error"),j=e("./Description"),x=e("./utils/asMatcher");t.exports=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o,a,s,c,u,l=(o=_(3===(i=n).length?i:[""].concat(m(i)),3),a=o[0],s=o[1],c=o[2],{reason:a,actual:s,matcher:x(c)}),f=l.reason,p=l.matcher,h=l.actual,d=p.matches(h);if(d&&b.isFunction(d.then))throw new w("Matcher returned a promise instead of a boolean - use promiseThat for promising matchers!",{},e);if(!d){var y=new j;y.append(f).append("\nExpected: ").appendDescriptionOf(p).append("\n but: "),p.describeMismatch(h,y);var v={};throw b.isFunction(p.getExpectedForDiff)&&b.isFunction(p.formatActualForDiff)&&(v={showDiff:!0,expected:p.getExpectedForDiff(),actual:p.formatActualForDiff(h)}),new w(y.get(),v,e)}g&&g.expect&&((u=g.expect())&&u.nothing&&u.nothing())}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./Description":2,"./utils/asMatcher":57,"assertion-error":60,"core-js/modules/es.array.concat":176,"core-js/modules/es.array.from":180,"core-js/modules/es.array.iterator":182,"core-js/modules/es.array.slice":186,"core-js/modules/es.function.name":189,"core-js/modules/es.object.to-string":193,"core-js/modules/es.regexp.to-string":199,"core-js/modules/es.string.iterator":201,"core-js/modules/es.symbol":208,"core-js/modules/es.symbol.description":206,"core-js/modules/es.symbol.iterator":207,"core-js/modules/web.dom-collections.iterator":210,lodash:212}],4:[function(e,t,n){"use strict";var r=e("assertion-error");t.exports=function e(t){throw new r(t,{},e)}},{"assertion-error":60}],5:[function(e,t,n){"use strict";e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.get-own-property-names"),e("core-js/modules/web.dom-collections.for-each"),e("core-js/modules/web.url.to-json"),t.exports=function(){Error.prototype.toJSON||Object.defineProperty(Error.prototype,"toJSON",{value:function(){var t={};return Object.getOwnPropertyNames(this).forEach(function(e){t[e]=this[e]},this),t},configurable:!0,writable:!0})}},{"core-js/modules/es.array.for-each":179,"core-js/modules/es.object.get-own-property-names":190,"core-js/modules/web.dom-collections.for-each":209,"core-js/modules/web.url.to-json":211}],6:[function(e,t,n){"use strict";e("core-js/modules/es.string.ends-with"),e("core-js/modules/es.string.starts-with");var r=e("lodash"),i=e("./matchers/IsEqual"),o=e("./matchers/Matcher"),a=e("./matchers/SubstringMatcher"),s=e("./matchers/NumberComparisonMatcher"),c=e("./matchers/DateComparisonMatcher"),u=e("./Description");e("./fixErrorJson")();var l={assertThat:e("./assertThat"),promiseThat:e("./promiseThat"),fail:e("./fail")},f={Matcher:o,TypeSafeMatcher:e("./matchers/TypeSafeMatcher"),FeatureMatcher:e("./matchers/FeatureMatcher"),anything:e("./matchers/IsAnything").anything,strictlyEqualTo:e("./matchers/IsSame").strictlyEqualTo,is:e("./matchers/Is").is,not:e("./matchers/IsNot").not,equalTo:i.equalTo,truthy:e("./matchers/truthy"),falsy:e("./matchers/falsy"),falsey:e("./matchers/falsy"),defined:e("./matchers/IsDefined").defined,undefined:e("./matchers/IsDefined").undefined,undef:e("./matchers/IsDefined").undefined,instanceOf:e("./matchers/IsInstanceOf").instanceOf,array:e("./matchers/IsArray").array,bool:e("./matchers/IsBoolean").bool,boolean:e("./matchers/IsBoolean").bool,date:e("./matchers/IsDate").date,func:e("./matchers/IsFunction").func,number:e("./matchers/IsNumber").number,object:e("./matchers/IsObject").object,regExp:e("./matchers/IsRegExp").regExp,string:e("./matchers/IsString").string,containsString:a.containsString,containsStrings:a.containsStrings,startsWith:a.startsWith,endsWith:a.endsWith,matchesPattern:e("./matchers/IsStringMatching").matchesPattern,matches:e("./matchers/matches"),failsToMatch:e("./matchers/failsToMatch"),hasDescription:e("./matchers/hasDescription"),lessThan:s.lessThan,lessThanOrEqualTo:s.lessThanOrEqualTo,greaterThan:s.greaterThan,greaterThanOrEqualTo:s.greaterThanOrEqualTo,inRange:e("./matchers/inRange"),after:c.after,afterOrEqualTo:c.afterOrEqualTo,before:c.before,beforeOrEqualTo:c.beforeOrEqualTo,closeTo:e("./matchers/IsCloseTo").closeTo,allOf:e("./matchers/AllOf").allOf,anyOf:e("./matchers/AnyOf").anyOf,everyItem:e("./matchers/Every").everyItem,hasItem:e("./matchers/IsArrayWithItem").hasItem,hasItems:e("./matchers/IsArrayWithItems").hasItems,hasExactlyOneItem:e("./matchers/hasExactlyOneItem"),contains:e("./matchers/IsArrayContaining").contains,containsInAnyOrder:e("./matchers/IsArrayContainingInAnyOrder").containsInAnyOrder,orderedBy:e("./matchers/IsArrayOrderedBy").orderedBy,hasSize:e("./matchers/hasSize"),isEmpty:e("./matchers/isEmpty"),empty:e("./matchers/isEmpty"),hasProperties:e("./matchers/IsObjectWithProperties").hasProperties,hasDeepProperties:e("./matchers/IsObjectWithProperties").hasDeepProperties,hasProperty:e("./matchers/IsObjectWithProperties").hasProperty,throws:e("./matchers/IsFunctionThrowing").throws,returns:e("./matchers/returns"),typedError:e("./matchers/typedError"),promise:e("./matchers/IsPromise").promise,fulfilled:e("./matchers/IsFulfilled").fulfilled,isFulfilledWith:e("./matchers/IsFulfilled").isFulfilledWith,willBe:e("./matchers/IsFulfilled").isFulfilledWith,rejected:e("./matchers/IsRejected").rejected,isRejectedWith:e("./matchers/IsRejected").isRejectedWith,promiseAllOf:e("./matchers/AllOf").allOf},p={isMatcher:o.isMatcher,asMatcher:e("./utils/asMatcher"),acceptingMatcher:e("./utils/acceptingMatcher"),Description:u,describe:function(e){return(new u).appendDescriptionOf(e).get()}},h={};r.extend(h,l,f,p),t.exports=h},{"./Description":2,"./assertThat":3,"./fail":4,"./fixErrorJson":5,"./matchers/AllOf":7,"./matchers/AnyOf":8,"./matchers/DateComparisonMatcher":9,"./matchers/Every":10,"./matchers/FeatureMatcher":11,"./matchers/Is":12,"./matchers/IsAnything":13,"./matchers/IsArray":14,"./matchers/IsArrayContaining":15,"./matchers/IsArrayContainingInAnyOrder":16,"./matchers/IsArrayOrderedBy":17,"./matchers/IsArrayWithItem":18,"./matchers/IsArrayWithItems":19,"./matchers/IsBoolean":20,"./matchers/IsCloseTo":21,"./matchers/IsDate":22,"./matchers/IsDefined":23,"./matchers/IsEqual":24,"./matchers/IsFulfilled":25,"./matchers/IsFunction":26,"./matchers/IsFunctionThrowing":27,"./matchers/IsInstanceOf":28,"./matchers/IsNot":29,"./matchers/IsNumber":30,"./matchers/IsObject":31,"./matchers/IsObjectWithProperties":32,"./matchers/IsPromise":33,"./matchers/IsRegExp":34,"./matchers/IsRejected":35,"./matchers/IsSame":36,"./matchers/IsString":37,"./matchers/IsStringMatching":38,"./matchers/Matcher":39,"./matchers/NumberComparisonMatcher":40,"./matchers/SubstringMatcher":41,"./matchers/TypeSafeMatcher":42,"./matchers/failsToMatch":43,"./matchers/falsy":44,"./matchers/hasDescription":45,"./matchers/hasExactlyOneItem":46,"./matchers/hasSize":47,"./matchers/inRange":48,"./matchers/isEmpty":49,"./matchers/matches":50,"./matchers/returns":52,"./matchers/truthy":53,"./matchers/typedError":54,"./promiseThat":55,"./utils/acceptingMatcher":56,"./utils/asMatcher":57,"core-js/modules/es.string.ends-with":200,"core-js/modules/es.string.starts-with":205,lodash:212}],7:[function(e,t,n){"use strict";e("core-js/modules/es.array.every"),e("core-js/modules/es.array.map");var s=e("lodash"),r=e("./Matcher"),c=e("./promiseAgnostic");function i(a){return s.create(new r,{matches:function(t){var e=s.map(a,function(e){return e.matches(t)});return c.matchesAggregate(e,s.every)},describeTo:function(e){e.appendList("("," and ",")",a)},describeMismatch:function(r,i){var e=s.mapValues(a,function(e){return e.matches(r)}),o=!0;return c.describeMismatchAggregate(e,function(e,t){if(!e){var n=a[t];return o||i.append("\n"),o=!1,i.appendDescriptionOf(n).append(": "),i.indented(function(){return n.describeMismatch(r,i)})}})}})}i.allOf=function(){return new i(arguments)},t.exports=i},{"./Matcher":39,"./promiseAgnostic":51,"core-js/modules/es.array.every":177,"core-js/modules/es.array.map":183,lodash:212}],8:[function(e,t,n){"use strict";e("core-js/modules/es.array.map"),e("core-js/modules/es.array.some");var i=e("lodash"),o=e("./Matcher"),a=e("./promiseAgnostic");function r(n){var r=e("../..");return i.create(new o,{matches:function(t){var e=i.map(n,function(e){return r.asMatcher(e).matches(t)});return a.matchesAggregate(e,i.some)},describeTo:function(e){e.appendList("("," or ",")",n)}})}r.anyOf=function(){return new r(arguments)},t.exports=r},{"../..":1,"./Matcher":39,"./promiseAgnostic":51,"core-js/modules/es.array.map":183,"core-js/modules/es.array.some":187,lodash:212}],9:[function(e,t,n){"use strict";var i=e("lodash"),o=e("./IsDate"),a=e("../assertThat"),s=e("./Is").is,c=e("./IsDate").date;function r(t,n,r){return a(t,s(c())),i.create(new o,{matchesSafely:function(e){return r.call(this,e)},describeTo:function(e){e.append("a date ").append(n).append(" ").appendValue(t)},describeMismatchSafely:function(e,t){t.append("was ").appendValue(e)}})}i.extend(r,{after:function(t){return new r(t,"after",function(e){return t<e})},afterOrEqualTo:function(t){return new r(t,"after or equal to",function(e){return t<=e})},before:function(t){return new r(t,"before",function(e){return e<t})},beforeOrEqualTo:function(t){return new r(t,"before or equal to",function(e){return e<=t})}}),t.exports=r},{"../assertThat":3,"./Is":12,"./IsDate":22,lodash:212}],10:[function(e,t,n){"use strict";e("core-js/modules/es.array.every"),e("core-js/modules/es.array.map");var o=e("lodash"),r=e("./TypeSafeMatcher"),i=e("../utils/acceptingMatcher"),a=e("./promiseAgnostic"),s=i(function(i){return o.create(new r,{isExpectedType:function(e){return o.isArray(e)||o.isObject(e)},matchesSafely:function(e){var t=o.map(e,function(e){return i.matches(e)});return a.matchesAggregate(t,o.every)},describeTo:function(e){e.append("every item is ").appendDescriptionOf(i)},describeMismatchSafely:function(n,r){var e=o.isArray(n)?o.map(n,function(e){return i.matches(e)}):o.mapValues(n,function(e){return i.matches(e)});return a.describeMismatchAggregate(e,function(e,t){if(!e)return r.append("\nitem ").appendValue(t).append(" "),r.indented(function(){return i.describeMismatch(n[t],r)})})}})});s.everyItem=function(e){return new s(e)},t.exports=s},{"../utils/acceptingMatcher":56,"./TypeSafeMatcher":42,"./promiseAgnostic":51,"core-js/modules/es.array.every":177,"core-js/modules/es.array.map":183,lodash:212}],11:[function(e,t,n){"use strict";var a=e("lodash"),s=e("./Matcher"),c=e("../utils/asMatcher"),u=e("./promiseAgnostic");t.exports=function(e,t,r,i){var o=c(e);return i=i||function(e){return e[r]},a.create(new s,{matches:function(e){var t=i(e);return o.matches(t)},describeTo:function(e){e.append(t).append(" ").appendDescriptionOf(o)},describeMismatch:function(e,t){var n=i(e);return u.describeMismatch(o.matches(n),function(){return t.append(r).append(" "),o.describeMismatch(n,t)},function(){t.append("\nfor ").appendValue(e)})}})}},{"../utils/asMatcher":57,"./Matcher":39,"./promiseAgnostic":51,lodash:212}],12:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./Matcher"),o=e("../utils/acceptingMatcher")(function(n){return r.create(new i,{matches:function(e){return n.matches(e)},describeTo:function(e){e.append("is ").appendDescriptionOf(n)},describeMismatch:function(e,t){return n.describeMismatch(e,t)},getExpectedForDiff:n.getExpectedForDiff,formatActualForDiff:n.formatActualForDiff})});o.is=function(e){return new o(e)},t.exports=o},{"../utils/acceptingMatcher":56,"./Matcher":39,lodash:212}],13:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./Matcher");function o(){return r.create(new i,{matches:function(){return!0},describeTo:function(e){e.append("anything")}})}o.anything=function(){return new o},t.exports=o},{"./Matcher":39,lodash:212}],14:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./TypeSafeMatcher");function o(){return r.create(new i,{isExpectedType:function(e){return r.isArray(e)},describeTo:function(e){e.append("an array")}})}o.array=function(){return new o},t.exports=o},{"./TypeSafeMatcher":42,lodash:212}],15:[function(e,t,n){"use strict";e("core-js/modules/es.array.every"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.slice");var a=e("lodash"),r=e("./IsArray"),i=e("../utils/asMatcher"),s=e("./promiseAgnostic");function o(e){var o=a.map(e,i);return a.create(new r,{matchesSafely:function(n){if(n.length!==o.length)return!1;var e=a.map(o,function(e,t){return e.matches(n[t])});return s.matchesAggregate(e,a.every)},describeTo:function(e){e.appendList("[",", ","]",o)},describeMismatchSafely:function(n,r){var e=a.map(n,function(e,t){if(o.length>t)return o[t].matches(e)}),i=!0;return s.describeMismatchAggregate(e,function(e,t){if(!(e||o.length<=t||n.length<=t))return i||r.append("\n"),i=!1,r.append("item ").append(t).append(": "),o[t].describeMismatch(n[t],r)},function(){i||r.append("\n"),n.length>o.length?r.indented(function(){return r.appendList("not matched:\n",",\n","",n.slice(o.length))}):n.length<o.length&&r.indented(function(){return r.appendList("missing:\n",",\n","",o.slice(n.length))})})}})}o.contains=function(){return new o(arguments)},t.exports=o},{"../utils/asMatcher":57,"./IsArray":14,"./promiseAgnostic":51,"core-js/modules/es.array.every":177,"core-js/modules/es.array.map":183,"core-js/modules/es.array.slice":186,lodash:212}],16:[function(e,t,n){"use strict";e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.splice"),e("core-js/modules/web.dom-collections.for-each");var o=e("lodash"),r=e("./IsArray"),a=e("../utils/asMatcher");function s(e){return o.create({},{unmatchedMatchers:o.clone(e),matches:function(n){var r=this,i=!1;return o.forEach(this.unmatchedMatchers,function(e,t){if(e.matches(n))return i=!0,r.unmatchedMatchers.splice(t,1),!1},this),i}})}function i(e){var i=o.map(e,a);return o.create(new r,{matchesSafely:function(e){if(e.length!==i.length)return!1;var t=new s(i);return o.forEach(e,function(e){if(!t.matches(e))return!1}),0===t.unmatchedMatchers.length},describeTo:function(e){e.appendList("[",", ","]",i).append(" in any order")},describeMismatchSafely:function(e,t){var n=new s(i),r=[];o.forEach(e,function(e){n.matches(e)||r.push(e)}),0!==n.unmatchedMatchers.length?t.append("no item in ").appendValue(e).indented(function(){return t.appendList(" matches:\n",",\n","",n.unmatchedMatchers)}):0!==r.length&&t.indented(function(){return t.appendList("not matched:\n",",\n","",r)}).append("\nfrom ").appendValue(e)}})}i.containsInAnyOrder=function(){return new i(arguments)},t.exports=i},{"../utils/asMatcher":57,"./IsArray":14,"core-js/modules/es.array.for-each":179,"core-js/modules/es.array.map":183,"core-js/modules/es.array.splice":188,"core-js/modules/web.dom-collections.for-each":209,lodash:212}],17:[function(e,t,n){"use strict";e("core-js/modules/es.array.reduce"),e("core-js/modules/es.function.name");var a=e("lodash"),r=e("./IsArray");function i(o,t){return t=t||o.name,a.create(new r,{matchesSafely:function(e){var n=!0;return a.reduce(e,function(e,t){return o(e,t)||(n=!1),t}),n},describeTo:function(e){e.append("an array ordered ").append(t)},describeMismatchSafely:function(e,t){var r,i=!0;a.reduce(e,function(e,t,n){return!o(e,t)&&i&&(i=!1,r={a:e,aIndex:n-1,b:t,bIndex:n}),t}),t.appendValue(r.a).append(" at index ").append(r.aIndex).append(" and ").appendValue(r.b).append(" at index ").append(r.bIndex).append(" are not in order")}})}i.orderedBy=function(e,t){return new i(e,t)},t.exports=i},{"./IsArray":14,"core-js/modules/es.array.reduce":185,"core-js/modules/es.function.name":189,lodash:212}],18:[function(e,t,n){"use strict";e("core-js/modules/es.array.map"),e("core-js/modules/es.array.some");var o=e("lodash"),r=e("./IsArray"),i=e("../utils/acceptingMatcher"),a=e("./promiseAgnostic"),s=i(function(i){return o.create(new r,{matchesSafely:function(e){var t=o.map(e,function(e){return i.matches(e)});return a.matchesAggregate(t,o.some)},describeTo:function(e){e.append("an array containing ").appendDescriptionOf(i)},describeMismatchSafely:function(n,r){if(0!==n.length){var e=o.map(n,function(e){return i.matches(e)});return a.describeMismatchAggregate(e,function(e,t){return r.append("\n"),r.append("item ").append(t).append(": "),r.indented(function(){return i.describeMismatch(n[t],r)})})}r.append("was empty")}})});s.hasItem=function(e){return new s(e)},t.exports=s},{"../utils/acceptingMatcher":56,"./IsArray":14,"./promiseAgnostic":51,"core-js/modules/es.array.map":183,"core-js/modules/es.array.some":187,lodash:212}],19:[function(e,t,n){"use strict";e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.map"),e("core-js/modules/web.dom-collections.for-each");function r(e){var n=new s(i.map(e,a));return i.create(new o,{matchesSafely:function(e){return n.matches(e)},describeTo:function(t){t.append("an array containing ");var n=!0;i.forEach(e,function(e){n||t.append(", "),n=!1,c(e).describeTo(t)})},describeMismatchSafely:function(e,t){0!==e.length?n.describeMismatch(e,t):t.append("was empty")}})}var i=e("lodash"),o=e("./IsArray"),a=e("./IsArrayWithItem").hasItem,s=e("./AllOf"),c=e("../utils/asMatcher");r.hasItems=function(){return new r(arguments)},t.exports=r},{"../utils/asMatcher":57,"./AllOf":7,"./IsArray":14,"./IsArrayWithItem":18,"core-js/modules/es.array.for-each":179,"core-js/modules/es.array.map":183,"core-js/modules/web.dom-collections.for-each":209,lodash:212}],20:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./TypeSafeMatcher");function o(){return r.create(new i,{isExpectedType:function(e){return r.isBoolean(e)},describeTo:function(e){e.append("a boolean")}})}o.bool=function(){return new o},t.exports=o},{"./TypeSafeMatcher":42,lodash:212}],21:[function(e,t,n){"use strict";var i=e("lodash"),o=e("./IsNumber"),a=e("../assertThat"),s=e("./Is").is,c=e("./IsNumber").number;function r(t,n){function r(e){return Math.abs(e-t)}return a(t,s(c())),a(n,s(c())),i.create(new o,{matchesSafely:function(e){return r(e)<=n},describeTo:function(e){e.append("a number within ").appendValue(n).append(" of ").appendValue(t)},describeMismatchSafely:function(e,t){t.appendValue(e).append(" differed by ").appendValue(r(e))}})}r.closeTo=function(e,t){return new r(e,t)},t.exports=r},{"../assertThat":3,"./Is":12,"./IsNumber":30,lodash:212}],22:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./TypeSafeMatcher");function o(){return r.create(new i,{isExpectedType:function(e){return r.isDate(e)},describeTo:function(e){e.append("a date")}})}o.date=function(){return new o},t.exports=o},{"./TypeSafeMatcher":42,lodash:212}],23:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./Matcher"),o=e("./IsNot").not;function a(){return r.create(new i,{matches:function(e){return!r.isUndefined(e)},describeTo:function(e){e.append("defined")}})}a.defined=function(){return new a},a.undefined=function(){return o(a.defined())},t.exports=a},{"./IsNot":29,"./Matcher":39,lodash:212}],24:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./Matcher");function o(t){return r.create(new i,{matches:function(e){return r.isEqual(t,e)},describeTo:function(e){e.appendValue(t)},getExpectedForDiff:function(){return t},formatActualForDiff:function(e){return e}})}o.equalTo=function(e){return new o(e)},t.exports=o},{"./Matcher":39,lodash:212}],25:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./IsPromise"),o=e("../utils/asMatcher"),a=e("./IsAnything").anything;function s(e){var t=0===arguments.length,n=t?a():o(e);return r.create(new i,{matchesSafely:function(e){return e.then(function(e){return n.matches(e)},function(){return!1})},describeTo:function(e){t?e.append("a fulfilled promise"):(e.append("a promise fulfilled with "),n.describeTo(e))},describeMismatchSafely:function(e,t){return e.then(function(e){return t.append("fulfillment value: "),n.describeMismatch(e,t)},function(e){t.append("was rejected with ").appendValue(e)})}})}s.isFulfilledWith=s.fulfilled=function(e){return 0===arguments.length?new s:new s(e)},t.exports=s},{"../utils/asMatcher":57,"./IsAnything":13,"./IsPromise":33,lodash:212}],26:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./TypeSafeMatcher");function o(){return r.create(new i,{isExpectedType:function(e){return r.isFunction(e)},describeTo:function(e){e.append("a function")}})}o.func=function(){return new o},t.exports=o},{"./TypeSafeMatcher":42,lodash:212}],27:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./IsFunction"),o=e("../utils/asMatcher"),a=e("./IsAnything").anything;function s(e){var n=0===arguments.length?a():o(e);return r.create(new i,{matchesSafely:function(e){try{return e(),!1}catch(e){return n.matches(e)}},describeTo:function(e){e.append("a function throwing "),n.describeTo(e)},describeMismatch:function(e,t){try{e(),t.appendValue(e).append(" did not throw anything")}catch(e){return t.append("thrown object: "),n.describeMismatch(e,t)}}})}s.throws=function(e){return 0===arguments.length?new s:new s(e)},t.exports=s},{"../utils/asMatcher":57,"./IsAnything":13,"./IsFunction":26,lodash:212}],28:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./Matcher"),o=e("../assertThat"),a=e("./Is").is,s=e("./IsFunction").func,c=e("../utils/getType"),u=e("../utils/getTypeName");function l(t){return o(t,a(s())),r.create(new i,{matches:function(e){return e instanceof t},describeTo:function(e){e.append("an instance of ").append(u(t))},describeMismatch:function(e,t){r.isUndefined(e)?t.append("was ").appendValue(e):t.appendValue(e).append(" is a ").append(c(e))}})}l.instanceOf=function(e){return new l(e)},t.exports=l},{"../assertThat":3,"../utils/getType":58,"../utils/getTypeName":59,"./Is":12,"./IsFunction":26,"./Matcher":39,lodash:212}],29:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./Matcher"),o=e("../utils/acceptingMatcher"),a=e("./promiseAgnostic"),s=o(function(t){return r.create(new i,{matches:function(e){return a.matches(t.matches(e),function(e){return!e})},describeTo:function(e){e.append("not ").appendDescriptionOf(t)},describeMismatch:function(e,t){t.append("was ").appendValue(e)}})});s.not=function(e){return new s(e)},t.exports=s},{"../utils/acceptingMatcher":56,"./Matcher":39,"./promiseAgnostic":51,lodash:212}],30:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./TypeSafeMatcher");function o(){return r.create(new i,{isExpectedType:function(e){return r.isNumber(e)},describeTo:function(e){e.append("a number")}})}o.number=function(){return new o},t.exports=o},{"./TypeSafeMatcher":42,lodash:212}],31:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./TypeSafeMatcher");function o(){return r.create(new i,{isExpectedType:function(e){return r.isObject(e)},describeTo:function(e){e.append("an object")}})}o.object=function(){return new o},t.exports=o},{"./TypeSafeMatcher":42,lodash:212}],32:[function(e,t,n){"use strict";e("core-js/modules/es.array.every"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.reduce-right"),e("core-js/modules/es.object.get-prototype-of"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.split"),e("core-js/modules/web.dom-collections.for-each");var a=e("lodash"),r=e("./IsObject"),i=e("./Matcher").isMatcher,s=e("../utils/asMatcher"),o=e("./IsDefined").defined,c=e("./promiseAgnostic");function u(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1],o=a.mapValues(e,function(e){return!t||!e||i(e)||e.constructor!==Object&&null!==Object.getPrototypeOf(e)?s(e):new u(e)});return a.create(new r,{matchesSafely:function(n){var e=a.mapValues(o,function(e,t){return e.matches(n[t])});return c.matchesAggregate(e,a.every)},describeTo:function(n){n.append("an object with {");var r=!0;a.forEach(o,function(e,t){r||n.append(", "),r=!1,n.append(t).append(": ").appendDescriptionOf(e)}),n.append("}")},describeMismatchSafely:function(n,r){var e=a.mapValues(o,function(e,t){return e.matches(n[t])}),i=!0,t=this.describeVerbose;return c.describeMismatchAggregate(e,function(e,t){if(!e)return i||r.append(",\n"),i=!1,r.append(t).append(" "),r.indented(function(){return o[t].describeMismatch(n[t],r)})},function(){t&&r.append("\nfor ").appendValue(n)})},verbose:function(){return this.describeVerbose=!0,this}})}u.hasProperties=function(e){return new u(e)},u.hasDeepProperties=function(e){return new u(e,!0)},u.hasProperty=function(e,t){var n=a.isArray(e)?e:e.split("."),r=a.isUndefined(t)?o():t;return a.reduceRight(n,function(e,t){return new u((i=e,(r=t)in(n={})?Object.defineProperty(n,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[r]=i,n));var n,r,i},r)},t.exports=u},{"../utils/asMatcher":57,"./IsDefined":23,"./IsObject":31,"./Matcher":39,"./promiseAgnostic":51,"core-js/modules/es.array.every":177,"core-js/modules/es.array.for-each":179,"core-js/modules/es.array.reduce-right":184,"core-js/modules/es.object.get-prototype-of":191,"core-js/modules/es.regexp.exec":198,"core-js/modules/es.string.split":204,"core-js/modules/web.dom-collections.for-each":209,lodash:212}],33:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./TypeSafeMatcher");function o(){return r.create(new i,{isExpectedType:function(e){return e&&r.isFunction(e.then)},describeTo:function(e){e.append("a promise")}})}o.promise=function(){return new o},t.exports=o},{"./TypeSafeMatcher":42,lodash:212}],34:[function(e,t,n){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(o){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t,n,r,i=u(o);return t=a?(e=u(this).constructor,Reflect.construct(i,arguments,e)):i.apply(this,arguments),n=this,!(r=t)||"object"!==s(r)&&"function"!=typeof r?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(n):r}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.object.get-prototype-of"),e("core-js/modules/es.object.set-prototype-of"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.reflect.construct"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.iterator");var l=e("lodash"),f=e("./TypeSafeMatcher"),r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(i,f);var e,t,n,r=c(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.apply(this,arguments)}return e=i,(t=[{key:"isExpectedType",value:function(e){return l.isRegExp(e)}},{key:"describeTo",value:function(e){e.append("a regular expression")}}])&&o(e.prototype,t),n&&o(e,n),i}();r.regExp=function(){return new r},t.exports=r},{"./TypeSafeMatcher":42,"core-js/modules/es.array.iterator":182,"core-js/modules/es.object.get-prototype-of":191,"core-js/modules/es.object.set-prototype-of":192,"core-js/modules/es.object.to-string":193,"core-js/modules/es.reflect.construct":196,"core-js/modules/es.regexp.to-string":199,"core-js/modules/es.string.iterator":201,"core-js/modules/es.symbol":208,"core-js/modules/es.symbol.description":206,"core-js/modules/es.symbol.iterator":207,"core-js/modules/web.dom-collections.iterator":210,lodash:212}],35:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./IsPromise"),o=e("../utils/asMatcher"),a=e("./IsAnything").anything;function s(e){var t=0===arguments.length,n=t?a():o(e);return r.create(new i,{matchesSafely:function(e){return e.then(function(){return!1},function(e){return n.matches(e)})},describeTo:function(e){t?e.append("a rejected promise"):(e.append("a promise rejected with "),n.describeTo(e))},describeMismatchSafely:function(e,t){return e.then(function(e){t.append("was fulfilled with ").appendValue(e)},function(e){return t.append("rejection value "),n.describeMismatch(e,t)})}})}s.isRejectedWith=s.rejected=function(e){return 0===arguments.length?new s:new s(e)},t.exports=s},{"../utils/asMatcher":57,"./IsAnything":13,"./IsPromise":33,lodash:212}],36:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./Matcher");function o(t){return r.create(new i,{matches:function(e){return t===e},describeTo:function(e){e.append("same instance (").appendValue(t).append(")")}})}o.strictlyEqualTo=function(e){return new o(e)},t.exports=o},{"./Matcher":39,lodash:212}],37:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./TypeSafeMatcher");function o(){return r.create(new i,{isExpectedType:function(e){return r.isString(e)},describeTo:function(e){e.append("a string")}})}o.string=function(){return new o},t.exports=o},{"./TypeSafeMatcher":42,lodash:212}],38:[function(e,t,n){"use strict";e("core-js/modules/es.regexp.constructor"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.regexp.to-string");var r=e("lodash"),i=e("./IsString"),o=e("../assertThat"),a=e("./AnyOf").anyOf,s=e("./IsString").string,c=e("./IsRegExp").regExp;function u(e){o(e,a(c(),s()));var t=new RegExp(e);return r.create(new i,{matchesSafely:function(e){return t.test(e)},describeTo:function(e){e.append("a string matching ").appendValue(t)},describeMismatchSafely:function(e,t){t.append("was ").appendValue(e)}})}u.matchesPattern=function(e){return new u(e)},t.exports=u},{"../assertThat":3,"./AnyOf":8,"./IsRegExp":34,"./IsString":37,"core-js/modules/es.regexp.constructor":197,"core-js/modules/es.regexp.exec":198,"core-js/modules/es.regexp.to-string":199,lodash:212}],39:[function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=e("lodash"),r=function(){function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o.extend(this,e)}var e,n,r;return e=t,r=[{key:"isMatcher",value:function(e){return!o.isUndefined(e)&&!o.isNull(e)&&o.isFunction(e.matches)&&o.isFunction(e.describeTo)&&o.isFunction(e.describeMismatch)}}],(n=[{key:"matches",value:function(){throw new Error("Not implemented")}},{key:"describeTo",value:function(){throw new Error("Not implemented")}},{key:"describeMismatch",value:function(e,t){t.append("was ").appendValue(e)}}])&&i(e.prototype,n),r&&i(e,r),t}();t.exports=r},{lodash:212}],40:[function(e,t,n){"use strict";var i=e("lodash"),o=e("./IsNumber"),a=e("../assertThat"),s=e("./Is").is,c=e("./IsNumber").number;function r(t,n,r){return a(n,s(c())),i.create(new o,{matchesSafely:function(e){return r.call(this,e)},describeTo:function(e){e.append("a number ").append(t).append(" ").appendValue(n)},describeMismatchSafely:function(e,t){t.append("was ").appendValue(e)}})}i.extend(r,{greaterThan:function(t){return new r("greater than",t,function(e){return t<e})},greaterThanOrEqualTo:function(t){return new r("greater than or equal to",t,function(e){return t<=e})},lessThan:function(t){return new r("less than",t,function(e){return e<t})},lessThanOrEqualTo:function(t){return new r("less than or equal to",t,function(e){return e<=t})}}),t.exports=r},{"../assertThat":3,"./Is":12,"./IsNumber":30,lodash:212}],41:[function(e,t,n){"use strict";e("core-js/modules/es.array.every"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.index-of"),e("core-js/modules/es.array.map");var i=e("lodash"),o=e("./IsString"),a=e("../assertThat"),s=e("./Is").is,c=e("./IsString").string;function r(t,n,r){return a(t,s(c())),i.create(new o,{matchesSafely:function(e){return r.call(this,e)},describeTo:function(e){e.append("a string ").append(n).append(" ").appendValue(t)},describeMismatchSafely:function(e,t){t.append("was ").appendValue(e)},getExpectedForDiff:function(){return t},formatActualForDiff:function(e){return e}})}i.extend(r,{containsString:function(t){return new r(t,"containing",function(e){return-1!==e.indexOf(t)})},containsStrings:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return r.map(function(e){return a(e,s(c()))}),i.create(new o,{matchesSafely:function(t){return i.every(r,function(e){return-1!==t.indexOf(e)})},describeTo:function(e){e.append("a string containing ").appendList("",", ","",r)},describeMismatchSafely:function(t,e){var n=i.filter(r,function(e){return-1===t.indexOf(e)});e.appendList("",", ","",n).append(" could not be found in ").appendValue(t)}})},startsWith:function(t){return new r(t,"starting with",function(e){return 0===e.indexOf(t)})},endsWith:function(t){return new r(t,"ending with",function(e){return-1!==e.indexOf(t,e.length-t.length)})}}),t.exports=r},{"../assertThat":3,"./Is":12,"./IsString":37,"core-js/modules/es.array.every":177,"core-js/modules/es.array.filter":178,"core-js/modules/es.array.index-of":181,"core-js/modules/es.array.map":183,lodash:212}],42:[function(e,t,n){"use strict";function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(o){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t,n,r,i=u(o);return t=a?(e=u(this).constructor,Reflect.construct(i,arguments,e)):i.apply(this,arguments),n=this,!(r=t)||"object"!==s(r)&&"function"!=typeof r?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(n):r}}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.description"),e("core-js/modules/es.symbol.iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.object.get-prototype-of"),e("core-js/modules/es.object.set-prototype-of"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.reflect.construct"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/es.string.iterator"),e("core-js/modules/web.dom-collections.iterator");var l=e("./Matcher"),f=e("../utils/getType"),r=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(i,l);var e,t,n,r=c(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return e=i,(t=[{key:"matches",value:function(e){return!!this.isExpectedType(e)&&this.matchesSafely(e)}},{key:"describeMismatch",value:function(e,t){if(this.isExpectedType(e))return this.describeMismatchSafely(e,t);e?t.append("was a ").append(f(e)).append(" (").appendValue(e).append(")"):t.append("was ").appendValue(e)}},{key:"isExpectedType",value:function(){throw new Error("Not implemented")}},{key:"matchesSafely",value:function(){return!0}},{key:"describeMismatchSafely",value:function(){throw new Error("Not implemented")}}])&&o(e.prototype,t),n&&o(e,n),i}();t.exports=r},{"../utils/getType":58,"./Matcher":39,"core-js/modules/es.array.iterator":182,"core-js/modules/es.object.get-prototype-of":191,"core-js/modules/es.object.set-prototype-of":192,"core-js/modules/es.object.to-string":193,"core-js/modules/es.reflect.construct":196,"core-js/modules/es.regexp.to-string":199,"core-js/modules/es.string.iterator":201,"core-js/modules/es.symbol":208,"core-js/modules/es.symbol.description":206,"core-js/modules/es.symbol.iterator":207,"core-js/modules/web.dom-collections.iterator":210}],43:[function(e,t,n){"use strict";var o=e("lodash"),a=e("./../Description"),s=e("./TypeSafeMatcher"),c=e("./IsAnything").anything,u=e("../utils/asMatcher"),l=e("./Matcher").isMatcher;t.exports=function(r,i){return i=i?u(i):c(),o.create(new s,{isExpectedType:function(e){return l(e)},matchesSafely:function(e){if(e.matches(r))return!1;var t=new a;return e.describeMismatch(r,t),i.matches(t.get())},describeTo:function(e){e.append("a matcher failing to match ").appendValue(r).append(' with mismatch description "').appendDescriptionOf(i).append('"')},describeMismatchSafely:function(e,t){var n;t.append("matcher with description ").appendValue((new a).appendDescriptionOf(e).get()),e.matches(r)?t.append(" matched"):(n=new a,e.describeMismatch(r,n),t.append(": mismatch description "),i.describeMismatch(n.get(),t))}})}},{"../utils/asMatcher":57,"./../Description":2,"./IsAnything":13,"./Matcher":39,"./TypeSafeMatcher":42,lodash:212}],44:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./Matcher");t.exports=function(){return r.create(new i,{matches:function(e){return!e},describeTo:function(e){e.append("falsy value")}})}},{"./Matcher":39,lodash:212}],45:[function(e,t,n){"use strict";var i=e("lodash"),o=e("./../Description"),a=e("./TypeSafeMatcher"),r=e("../utils/acceptingMatcher"),s=e("./Matcher").isMatcher;t.exports=r(function(r){return i.create(new a,{isExpectedType:function(e){return s(e)},matchesSafely:function(e){var t=(new o).appendDescriptionOf(e).get();return r.matches(t)},describeTo:function(e){e.append("a matcher with description: ").appendDescriptionOf(r)},describeMismatchSafely:function(e,t){t.append("matcher description ");var n=(new o).appendDescriptionOf(e).get();r.describeMismatch(n,t)}})})},{"../utils/acceptingMatcher":56,"./../Description":2,"./Matcher":39,"./TypeSafeMatcher":42,lodash:212}],46:[function(e,t,n){"use strict";e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.map");var s=e("lodash"),r=e("./IsArray"),i=e("../utils/acceptingMatcher"),c=e("./promiseAgnostic");t.exports=i(function(a){return s.create(new r,{matchesSafely:function(e){var t=s.map(e,function(e){return a.matches(e)});return c.matchesAggregate(t,function(e){return 1===s.filter(e).length})},describeTo:function(e){e.append("an array containing exactly one instance of ").appendDescriptionOf(a)},describeMismatchSafely:function(n,r){if(0!==n.length){var e=s.map(n,function(e){return a.matches(e)}),i=!0,o=!0;return c.describeMismatchAggregate(e,function(e,t){if(e)return i&&(i=!1,r.append("array contained multiple instances:")),r.indented(function(){r.append("\n"),r.append("item ").append(t).append(": ").appendValue(n[t])})},function(){return c.describeMismatchAggregate(e,function(e,t){if(!e)return!i&&o&&(o=!1,r.append("\nother items:")),r.indented(function(){return r.append("\n"),r.append("item ").append(t).append(": "),r.indented(function(){return a.describeMismatch(n[t],r)})})})})}r.append("was empty")}})})},{"../utils/acceptingMatcher":56,"./IsArray":14,"./promiseAgnostic":51,"core-js/modules/es.array.filter":178,"core-js/modules/es.array.map":183,lodash:212}],47:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./TypeSafeMatcher"),o=e("./FeatureMatcher");t.exports=function(e){var t=new o(e,"a collection or string with size","size",function(e){return r.size(e)});return r.create(new i,{isExpectedType:function(e){return r.isString(e)||r.isObject(e)},matchesSafely:t.matches,describeTo:t.describeTo,describeMismatchSafely:t.describeMismatch})}},{"./FeatureMatcher":11,"./TypeSafeMatcher":42,lodash:212}],48:[function(r,e,t){"use strict";var i=r("lodash");e.exports=function(t,n){var e=r("../..");return i.isUndefined(n)&&(n=t,t=0),e.assertThat("Start",t,e.is(e.number())),e.assertThat("End",n,e.is(e.number())),i.create(e.number(),{matchesSafely:function(e){return i.inRange(e,t,n)},describeTo:function(e){e.append("a number in range [").append(t).append(", ").append(n).append(")")},describeMismatchSafely:function(e,t){t.append("was ").appendValue(e)}})}},{"../..":1,lodash:212}],49:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./hasSize");t.exports=function(){return r.extend(i(0),{describeTo:function(e){e.append("an empty collection or string")}})}},{"./hasSize":47,lodash:212}],50:[function(e,t,n){"use strict";var i=e("lodash"),o=e("./../Description"),a=e("./TypeSafeMatcher"),s=e("./Matcher").isMatcher;t.exports=function(r){return i.create(new a,{isExpectedType:function(e){return s(e)},matchesSafely:function(e){return e.matches(r)},describeTo:function(e){e.append("a matcher matching ").appendValue(r)},describeMismatchSafely:function(e,t){var n=new o;e.describeMismatch(r,n),t.append("matcher with description ").appendValue((new o).appendDescriptionOf(e).get()).append(" failed to match and explained: ").appendValue(n.get())}})}},{"./../Description":2,"./Matcher":39,"./TypeSafeMatcher":42,lodash:212}],51:[function(e,t,n){"use strict";e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.reduce"),e("core-js/modules/es.array.some"),e("core-js/modules/web.dom-collections.for-each");var i=e("lodash"),o=e("bluebird");function a(e){return i.isArray(e)?o.all(e):o.props(e)}var r={matches:function(e,t){return s(e)?o.resolve(e).then(t):t(e)},matchesAggregate:function(e,t){return i.some(e,s)?a(e).then(t):t(e)},describeMismatchAggregate:function(e,r,t){if(i.some(e,s))return a(e).then(function(e){return i.reduce(e,function(e,t,n){return e.then(function(){return r(t,n)})},o.resolve())}).then(t||i.identity);i.forEach(e,function(e,t){return r(e,t)}),t&&t()},describeMismatch:function(e,t,n){if(s(e))return o.resolve(e).then(t).then(n||i.identity);t(e),n&&n()}};function s(e){return e&&i.isFunction(e.then)}t.exports=r},{bluebird:61,"core-js/modules/es.array.for-each":179,"core-js/modules/es.array.reduce":185,"core-js/modules/es.array.some":187,"core-js/modules/web.dom-collections.for-each":209,lodash:212}],52:[function(e,t,n){"use strict";var i=e("lodash"),o=e("./IsAnything").anything,a=e("../utils/asMatcher"),s=e("./IsFunction").func,c=e("../utils/getType");t.exports=function(e){var r=e?a(e):o();return i.create(s(),{matchesSafely:function(e){try{var t=e();return r.matches(t)}catch(e){return!1}},describeTo:function(e){e.append("a function returning ").appendDescriptionOf(r)},describeMismatchSafely:function(e,t){try{var n=e();return t.append("return value "),r.describeMismatch(n,t)}catch(e){t.append("function threw ").append(c(e)),e.message&&t.append(": ").appendValue(e.message)}}})}},{"../utils/asMatcher":57,"../utils/getType":58,"./IsAnything":13,"./IsFunction":26,lodash:212}],53:[function(e,t,n){"use strict";var r=e("lodash"),i=e("./Matcher");t.exports=function(){return r.create(new i,{matches:function(e){return!!e},describeTo:function(e){e.append("truthy value")}})}},{"./Matcher":39,lodash:212}],54:[function(e,t,n){"use strict";var o=e("../utils/asMatcher"),a=e("../utils/getType"),s=e("../utils/getTypeName");t.exports=function(r,e){var i=o(e);return{matches:function(e){return e instanceof r&&i.matches(e.message)},describeTo:function(e){e.append("an error of ty