hamjest 3.6.2 → 3.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/index.d.ts +5 -5
- package/@types/typeTests.ts +3 -0
- package/README.md +15 -6
- package/dist/hamjest.js +2113 -1418
- package/dist/hamjest.min.js +1 -1
- package/lib/Description.js +7 -2
- package/lib/matchers/IsArrayContainingInAnyOrder.js +2 -2
- package/lib/matchers/IsObjectWithProperties.js +13 -5
- package/package.json +1 -1
- package/tags +68 -32
- package/test/node/matchers/IsArrayContainingInAnyOrderSpec.js +1 -1
- package/test/node/matchers/IsObjectWithPropertiesSpec.js +25 -10
package/lib/Description.js
CHANGED
|
@@ -56,7 +56,7 @@ function Description() {
|
|
|
56
56
|
}
|
|
57
57
|
return this;
|
|
58
58
|
},
|
|
59
|
-
appendValue(value) {
|
|
59
|
+
appendValue(value, indentLists) {
|
|
60
60
|
if (_.isUndefined(value)) {
|
|
61
61
|
this.append('undefined');
|
|
62
62
|
} else if (_.isNull(value)) {
|
|
@@ -70,7 +70,12 @@ function Description() {
|
|
|
70
70
|
this.append(value);
|
|
71
71
|
this.append('>');
|
|
72
72
|
} else if (_.isArray(value)) {
|
|
73
|
-
|
|
73
|
+
if (indentLists && value.length > 1) {
|
|
74
|
+
this.indented(() => this.appendList('[\n', ',\n', '', value))
|
|
75
|
+
.append('\n]');
|
|
76
|
+
} else {
|
|
77
|
+
this.appendList('[', ', ', ']', value);
|
|
78
|
+
}
|
|
74
79
|
} else if (isDomNode(value)) {
|
|
75
80
|
this.append('DOM node ')
|
|
76
81
|
.appendValue(_.isFunction(value.html) ? value.html() : value.outerHTML);
|
|
@@ -54,13 +54,13 @@ const IsArrayContainingInAnyOrder = function IsArrayContainingInAnyOrder(itemsOr
|
|
|
54
54
|
if (matcher.unmatchedMatchers.length !== 0) {
|
|
55
55
|
description
|
|
56
56
|
.append('no item in ')
|
|
57
|
-
.appendValue(actual)
|
|
57
|
+
.appendValue(actual, true)
|
|
58
58
|
.indented(() => description.appendList(' matches:\n', ',\n', '', matcher.unmatchedMatchers));
|
|
59
59
|
} else if (unmatchedItems.length !== 0) {
|
|
60
60
|
description
|
|
61
61
|
.indented(() => description.appendList('not matched:\n', ',\n', '', unmatchedItems))
|
|
62
62
|
.append('\nfrom ')
|
|
63
|
-
.appendValue(actual);
|
|
63
|
+
.appendValue(actual, true);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
});
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const _ = require('lodash');
|
|
4
|
+
const contains = require('./IsArrayContaining').contains;
|
|
4
5
|
const IsObject = require('./IsObject');
|
|
5
6
|
const isMatcher = require('./Matcher').isMatcher;
|
|
6
7
|
const asMatcher = require('../utils/asMatcher');
|
|
7
8
|
const defined = require('./IsDefined').defined;
|
|
8
9
|
const promiseAgnostic = require('./promiseAgnostic');
|
|
9
10
|
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
if (
|
|
11
|
+
function asDeepMatcher(value) {
|
|
12
|
+
if (value && !isMatcher(value)) {
|
|
13
|
+
if (value.constructor === Object || Object.getPrototypeOf(value) === null) {
|
|
13
14
|
return new IsObjectWithProperties(value, true);
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
if (_.isArray(value)) {
|
|
17
|
+
return contains(..._.map(value, v => asDeepMatcher(v)));
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return asMatcher(value);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function IsObjectWithProperties(properties, deep = false) {
|
|
24
|
+
const propertyMatchers = _.mapValues(properties, deep ? asDeepMatcher : asMatcher);
|
|
17
25
|
return _.create(new IsObject(), {
|
|
18
26
|
matchesSafely: function (actual) {
|
|
19
27
|
const results = _.mapValues(propertyMatchers, (matcher, key) => {
|
package/package.json
CHANGED
package/tags
CHANGED
|
@@ -29,9 +29,11 @@
|
|
|
29
29
|
!_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
|
|
30
30
|
!_TAG_PROGRAM_VERSION 5.8 //
|
|
31
31
|
$ dist/hamjest.js /^$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {$/;" M
|
|
32
|
+
$args dist/hamjest.js /^ var $args = [null];$/;" A
|
|
32
33
|
$create dist/hamjest.js /^var $create = function create(O, Properties) {$/;" F
|
|
33
34
|
$defineProperties dist/hamjest.js /^var $defineProperties = function defineProperties(O, Properties) {$/;" F
|
|
34
35
|
$defineProperty dist/hamjest.js /^var $defineProperty = function defineProperty(O, P, Attributes) {$/;" F
|
|
36
|
+
$endsWith dist/hamjest.js /^var $endsWith = ''.endsWith;$/;" V
|
|
35
37
|
$forEach dist/hamjest.js /^ $forEach(keys, function (key) {$/;" M
|
|
36
38
|
$forEach dist/hamjest.js /^ $forEach(names, function (key) {$/;" M
|
|
37
39
|
$forEach dist/hamjest.js /^$forEach(objectKeys(WellKnownSymbolsStore), function (name) {$/;" M
|
|
@@ -39,7 +41,9 @@ $getOwnPropertyDescriptor dist/hamjest.js /^var $getOwnPropertyDescriptor = func
|
|
|
39
41
|
$getOwnPropertyNames dist/hamjest.js /^var $getOwnPropertyNames = function getOwnPropertyNames(O) {$/;" F
|
|
40
42
|
$getOwnPropertySymbols dist/hamjest.js /^var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {$/;" F
|
|
41
43
|
$propertyIsEnumerable dist/hamjest.js /^var $propertyIsEnumerable = function propertyIsEnumerable(V) {$/;" F
|
|
44
|
+
$propertyIsEnumerable dist/hamjest.js /^var $propertyIsEnumerable = {}.propertyIsEnumerable;$/;" O
|
|
42
45
|
$replacer dist/hamjest.js /^ var $replacer;$/;" V
|
|
46
|
+
$startsWith dist/hamjest.js /^var $startsWith = ''.startsWith;$/;" V
|
|
43
47
|
% session.vim /^nmap <silent> % <Plug>(MatchitNormalForward)$/;" m
|
|
44
48
|
% session.vim /^omap <silent> % <Plug>(MatchitOperationForward)$/;" m
|
|
45
49
|
0 dist/hamjest.js /^ 0,$/;" V
|
|
@@ -269,7 +273,8 @@ IsObjectWithProperties dist/hamjest.js /^function IsObjectWithProperties(propert
|
|
|
269
273
|
IsObjectWithProperties lib/matchers/IsObjectWithProperties.js /^function IsObjectWithProperties(properties, deep = false) {$/;" F
|
|
270
274
|
IsPromise dist/hamjest.js /^function IsPromise() {$/;" F
|
|
271
275
|
IsPromise lib/matchers/IsPromise.js /^function IsPromise() {$/;" F
|
|
272
|
-
IsRegExp dist/hamjest.js /^function IsRegExp() {$/;" F
|
|
276
|
+
IsRegExp dist/hamjest.js /^ function IsRegExp() {$/;" F
|
|
277
|
+
IsRegExp dist/hamjest.js /^var IsRegExp = \/*#__PURE__*\/function (_TypeSafeMatcher) {$/;" V
|
|
273
278
|
IsRegExp lib/matchers/IsRegExp.js /^class IsRegExp extends TypeSafeMatcher {$/;" C
|
|
274
279
|
IsRejected dist/hamjest.js /^function IsRejected(valueOrMatcher) {$/;" F
|
|
275
280
|
IsRejected lib/matchers/IsRejected.js /^function IsRejected(valueOrMatcher) {$/;" F
|
|
@@ -300,7 +305,8 @@ MAX_UINT32 dist/hamjest.js /^var MAX_UINT32 = 0xFFFFFFFF;$/;" V
|
|
|
300
305
|
MapCache dist/hamjest.js /^ function MapCache(entries) {$/;" F
|
|
301
306
|
MappingPromiseArray dist/hamjest.js /^function MappingPromiseArray(promises, fn, limit, _filter) {$/;" F
|
|
302
307
|
Matcher dist/hamjest.js /^ Matcher: Matcher,$/;" P
|
|
303
|
-
Matcher dist/hamjest.js /^function Matcher() {$/;" F
|
|
308
|
+
Matcher dist/hamjest.js /^ function Matcher() {$/;" F
|
|
309
|
+
Matcher dist/hamjest.js /^var Matcher = \/*#__PURE__*\/function () {$/;" V
|
|
304
310
|
Matcher lib/hamjest.js /^ Matcher: Matcher,$/;" P
|
|
305
311
|
Matcher lib/matchers/Matcher.js /^class Matcher {$/;" C
|
|
306
312
|
MediaList dist/hamjest.js /^ MediaList: 0,$/;" P
|
|
@@ -318,7 +324,6 @@ NullProtoObjectViaActiveX dist/hamjest.js /^var NullProtoObjectViaActiveX = func
|
|
|
318
324
|
NullProtoObjectViaIFrame dist/hamjest.js /^var NullProtoObjectViaIFrame = function () {$/;" C
|
|
319
325
|
NumberComparisonMatcher dist/hamjest.js /^function NumberComparisonMatcher(relation, threshold, matchesNumber) {$/;" F
|
|
320
326
|
NumberComparisonMatcher lib/matchers/NumberComparisonMatcher.js /^function NumberComparisonMatcher(relation, threshold, matchesNumber) {$/;" F
|
|
321
|
-
O dist/hamjest.js /^ var O = { length: -1 };$/;" O
|
|
322
327
|
O dist/hamjest.js /^ var O = {};$/;" O
|
|
323
328
|
O dist/hamjest.js /^ var O, tag, result;$/;" V
|
|
324
329
|
ONREADYSTATECHANGE dist/hamjest.js /^var ONREADYSTATECHANGE = 'onreadystatechange';$/;" V
|
|
@@ -337,6 +342,8 @@ PROMISE dist/hamjest.js /^var PROMISE = 'Promise';$/;" V
|
|
|
337
342
|
PROTOTYPE dist/hamjest.js /^var PROTOTYPE = 'prototype';$/;" V
|
|
338
343
|
PaintRequestList dist/hamjest.js /^ PaintRequestList: 0,$/;" P
|
|
339
344
|
PassThroughHandlerContext dist/hamjest.js /^function PassThroughHandlerContext(promise, type, handler) {$/;" F
|
|
345
|
+
Person test/node/matchers/IsObjectWithPropertiesSpec.js /^ function Person(name, children = []) {$/;" F
|
|
346
|
+
Person test/node/matchers/IsObjectWithPropertiesSpec.js /^ function Person(name, partner) {$/;" F
|
|
340
347
|
Person test/node/matchers/IsObjectWithPropertiesSpec.js /^ function Person(name, children) {$/;" F
|
|
341
348
|
Plugin dist/hamjest.js /^ Plugin: 0,$/;" P
|
|
342
349
|
PluginArray dist/hamjest.js /^ PluginArray: 0,$/;" P
|
|
@@ -374,8 +381,8 @@ S dist/hamjest.js /^ var S;$/;" V
|
|
|
374
381
|
SCRIPT dist/hamjest.js /^var SCRIPT = 'script';$/;" V
|
|
375
382
|
SHARED dist/hamjest.js /^var SHARED = '__core-js_shared__';$/;" V
|
|
376
383
|
STRING_ITERATOR dist/hamjest.js /^var STRING_ITERATOR = 'String Iterator';$/;" V
|
|
377
|
-
SUBSTITUTION_SYMBOLS dist/hamjest.js /^var SUBSTITUTION_SYMBOLS = \/\\$([$&'`]|\\d
|
|
378
|
-
SUBSTITUTION_SYMBOLS_NO_NAMED dist/hamjest.js /^var SUBSTITUTION_SYMBOLS_NO_NAMED = \/\\$([$&'`]|\\d
|
|
384
|
+
SUBSTITUTION_SYMBOLS dist/hamjest.js /^var SUBSTITUTION_SYMBOLS = \/\\$([$&'`]|\\d{1,2}|<[^>]*>)\/g;$/;" V
|
|
385
|
+
SUBSTITUTION_SYMBOLS_NO_NAMED dist/hamjest.js /^var SUBSTITUTION_SYMBOLS_NO_NAMED = \/\\$([$&'`]|\\d{1,2})\/g;$/;" V
|
|
379
386
|
SVGLengthList dist/hamjest.js /^ SVGLengthList: 0,$/;" P
|
|
380
387
|
SVGNumberList dist/hamjest.js /^ SVGNumberList: 0,$/;" P
|
|
381
388
|
SVGPathSegList dist/hamjest.js /^ SVGPathSegList: 0,$/;" P
|
|
@@ -411,13 +418,14 @@ Timeout dist/hamjest.js /^function Timeout(id, clearFn) {$/;" F
|
|
|
411
418
|
TimeoutError dist/hamjest.js /^ TimeoutError: TimeoutError,$/;" P
|
|
412
419
|
TouchList dist/hamjest.js /^ TouchList: 0$/;" P
|
|
413
420
|
TypeError dist/hamjest.js /^ TypeError: _TypeError,$/;" P
|
|
414
|
-
TypeSafeMatcher dist/hamjest.js /^function TypeSafeMatcher() {$/;" F
|
|
421
|
+
TypeSafeMatcher dist/hamjest.js /^ function TypeSafeMatcher(fns) {$/;" F
|
|
422
|
+
TypeSafeMatcher dist/hamjest.js /^var TypeSafeMatcher = \/*#__PURE__*\/function (_Matcher) {$/;" V
|
|
415
423
|
TypeSafeMatcher lib/matchers/TypeSafeMatcher.js /^class TypeSafeMatcher extends Matcher {$/;" C
|
|
416
424
|
UNDEFINED_BINDING dist/hamjest.js /^var UNDEFINED_BINDING = {};$/;" O
|
|
417
425
|
UNHANDLED dist/hamjest.js /^var UNHANDLED = 2;$/;" V
|
|
418
426
|
UNHANDLED_REJECTION dist/hamjest.js /^var UNHANDLED_REJECTION = 'unhandledrejection';$/;" V
|
|
419
427
|
VALUES dist/hamjest.js /^var VALUES = 'values';$/;" V
|
|
420
|
-
VERSION dist/hamjest.js /^ var VERSION = '4.17.
|
|
428
|
+
VERSION dist/hamjest.js /^ var VERSION = '4.17.21';$/;" V
|
|
421
429
|
WRAP_BIND_FLAG dist/hamjest.js /^ var WRAP_BIND_FLAG = 1,$/;" V
|
|
422
430
|
Warning dist/hamjest.js /^ Warning: Warning$/;" P
|
|
423
431
|
[% session.vim /^nmap <silent> [% <Plug>(MatchitNormalMultiBackward)$/;" m
|
|
@@ -434,6 +442,7 @@ _addRejected dist/hamjest.js /^SomePromiseArray.prototype._addRejected = functio
|
|
|
434
442
|
_arrayLikeToArray dist/hamjest.js /^function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }$/;" F
|
|
435
443
|
_arrayWithHoles dist/hamjest.js /^function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }$/;" F
|
|
436
444
|
_arrayWithoutHoles dist/hamjest.js /^function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }$/;" F
|
|
445
|
+
_assertThisInitialized dist/hamjest.js /^function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }$/;" F
|
|
437
446
|
_asyncInit dist/hamjest.js /^MappingPromiseArray.prototype._asyncInit = function() {$/;" M
|
|
438
447
|
_attachCancellationCallback dist/hamjest.js /^Promise.prototype._attachCancellationCallback = function(onCancel) {$/;" M
|
|
439
448
|
_attachExtraTrace dist/hamjest.js /^Promise.prototype._attachExtraTrace = function () {};$/;" M
|
|
@@ -451,10 +460,14 @@ _cancelPromises dist/hamjest.js /^Promise.prototype._cancelPromises = function()
|
|
|
451
460
|
_captureStackTrace dist/hamjest.js /^Promise.prototype._captureStackTrace = function () {};$/;" M
|
|
452
461
|
_checkCapacity dist/hamjest.js /^Queue.prototype._checkCapacity = function (size) {$/;" M
|
|
453
462
|
_checkOutcome dist/hamjest.js /^SomePromiseArray.prototype._checkOutcome = function() {$/;" M
|
|
463
|
+
_classCallCheck dist/hamjest.js /^function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }$/;" F
|
|
454
464
|
_cleanup dist/hamjest.js /^PromiseSpawn.prototype._cleanup = function() {$/;" M
|
|
455
465
|
_clearCallbackDataAtIndex dist/hamjest.js /^Promise.prototype._clearCallbackDataAtIndex = function(index) {$/;" M
|
|
456
466
|
_clearCancellationData dist/hamjest.js /^Promise.prototype._clearCancellationData = function() {};$/;" M
|
|
457
467
|
_continue dist/hamjest.js /^PromiseSpawn.prototype._continue = function (result) {$/;" M
|
|
468
|
+
_createClass dist/hamjest.js /^function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }$/;" F
|
|
469
|
+
_createSuper dist/hamjest.js /^function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }$/;" F
|
|
470
|
+
_defineProperties dist/hamjest.js /^function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }$/;" F
|
|
458
471
|
_defineProperty dist/hamjest.js /^function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }$/;" F
|
|
459
472
|
_dereferenceTrace dist/hamjest.js /^Promise.prototype._dereferenceTrace = function () {};$/;" M
|
|
460
473
|
_doInvokeOnCancel dist/hamjest.js /^Promise.prototype._doInvokeOnCancel = function(onCancelCallback, internalOnly) {$/;" M
|
|
@@ -474,8 +487,10 @@ _fulfillPromises dist/hamjest.js /^Promise.prototype._fulfillPromises = function
|
|
|
474
487
|
_fulfilled dist/hamjest.js /^SomePromiseArray.prototype._fulfilled = function () {$/;" M
|
|
475
488
|
_fulfillmentHandlerAt dist/hamjest.js /^Promise.prototype._fulfillmentHandlerAt = function (index) {$/;" M
|
|
476
489
|
_getDisposer dist/hamjest.js /^ Promise.prototype._getDisposer = function () {$/;" M
|
|
490
|
+
_getPrototypeOf dist/hamjest.js /^function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }$/;" F
|
|
477
491
|
_getRangeError dist/hamjest.js /^SomePromiseArray.prototype._getRangeError = function (count) {$/;" M
|
|
478
492
|
_gotAccum dist/hamjest.js /^ReductionPromiseArray.prototype._gotAccum = function(accum) {$/;" M
|
|
493
|
+
_inherits dist/hamjest.js /^function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }$/;" F
|
|
479
494
|
_init dist/hamjest.js /^MappingPromiseArray.prototype._init = function () {};$/;" M
|
|
480
495
|
_init dist/hamjest.js /^PromiseArray.prototype._init = function init(_, resolveValueIfEmpty) {$/;" M
|
|
481
496
|
_init dist/hamjest.js /^PropertiesPromiseArray.prototype._init = function () {};$/;" M
|
|
@@ -490,6 +505,7 @@ _isDisposable dist/hamjest.js /^ Promise.prototype._isDisposable = function (
|
|
|
490
505
|
_isFateSealed dist/hamjest.js /^Promise.prototype._isFateSealed = function () {$/;" M
|
|
491
506
|
_isFinal dist/hamjest.js /^Promise.prototype._isFinal = function () {$/;" M
|
|
492
507
|
_isFollowing dist/hamjest.js /^Promise.prototype._isFollowing = function () {$/;" M
|
|
508
|
+
_isNativeReflectConstruct dist/hamjest.js /^function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }$/;" F
|
|
493
509
|
_isRejectionUnhandled dist/hamjest.js /^Promise.prototype._isRejectionUnhandled = function () {$/;" M
|
|
494
510
|
_isResolved dist/hamjest.js /^PromiseArray.prototype._isResolved = function () {$/;" M
|
|
495
511
|
_isResolved dist/hamjest.js /^PromiseSpawn.prototype._isResolved = function() {$/;" M
|
|
@@ -509,6 +525,7 @@ _onCancel dist/hamjest.js /^Promise.prototype._onCancel = function () {};$/;" M
|
|
|
509
525
|
_passThrough dist/hamjest.js /^Promise.prototype._passThrough = function(handler, type, success, fail) {$/;" M
|
|
510
526
|
_popContext dist/hamjest.js /^Context.prototype._popContext = function () {$/;" M
|
|
511
527
|
_popContext dist/hamjest.js /^Promise.prototype._popContext = function() {return null;};$/;" M
|
|
528
|
+
_possibleConstructorReturn dist/hamjest.js /^function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }$/;" F
|
|
512
529
|
_promiseAt dist/hamjest.js /^Promise.prototype._promiseAt = function (index) {$/;" M
|
|
513
530
|
_promiseCancelled dist/hamjest.js /^PromiseArray.prototype._promiseCancelled = function() {$/;" M
|
|
514
531
|
_promiseCancelled dist/hamjest.js /^PromiseSpawn.prototype._promiseCancelled = function() {$/;" M
|
|
@@ -568,6 +585,7 @@ _setIsFinal dist/hamjest.js /^Promise.prototype._setIsFinal = function () {$/;"
|
|
|
568
585
|
_setLength dist/hamjest.js /^Promise.prototype._setLength = function (len) {$/;" M
|
|
569
586
|
_setNoAsyncGuarantee dist/hamjest.js /^Promise.prototype._setNoAsyncGuarantee = function() {$/;" M
|
|
570
587
|
_setOnCancel dist/hamjest.js /^Promise.prototype._setOnCancel = function (handler) { ; };$/;" M
|
|
588
|
+
_setPrototypeOf dist/hamjest.js /^function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }$/;" F
|
|
571
589
|
_setRejected dist/hamjest.js /^Promise.prototype._setRejected = function () {$/;" M
|
|
572
590
|
_setRejectionIsUnhandled dist/hamjest.js /^Promise.prototype._setRejectionIsUnhandled = function () {$/;" M
|
|
573
591
|
_setReturnedNonUndefined dist/hamjest.js /^Promise.prototype._setReturnedNonUndefined = function() {$/;" M
|
|
@@ -655,7 +673,7 @@ append lib/Description.js /^ append(text) {$/;" M
|
|
|
655
673
|
appendDescriptionOf lib/Description.js /^ appendDescriptionOf(selfDescribing) {$/;" M
|
|
656
674
|
appendList lib/Description.js /^ appendList(start, separator, end, list) {$/;" M
|
|
657
675
|
appendNonJson lib/Description.js /^ appendNonJson(value) {$/;" M
|
|
658
|
-
appendValue lib/Description.js /^ appendValue(value) {$/;" M
|
|
676
|
+
appendValue lib/Description.js /^ appendValue(value, indentLists) {$/;" M
|
|
659
677
|
apply dist/hamjest.js /^ function apply(func, thisArg, args) {$/;" F
|
|
660
678
|
args dist/hamjest.js /^ var args = [].slice.call(arguments, 1);;$/;" A
|
|
661
679
|
args dist/hamjest.js /^ var args = new Array(len + 1); \\n\\$/;" V
|
|
@@ -707,6 +725,8 @@ ary dist/hamjest.js /^ function ary(func, n, guard) {$/;" F
|
|
|
707
725
|
asArray dist/hamjest.js /^ asArray = function(v) {$/;" M
|
|
708
726
|
asArray dist/hamjest.js /^ asArray: asArray,$/;" P
|
|
709
727
|
asArray dist/hamjest.js /^var asArray = function(v) {$/;" F
|
|
728
|
+
asDeepMatcher dist/hamjest.js /^function asDeepMatcher(value) {$/;" F
|
|
729
|
+
asDeepMatcher lib/matchers/IsObjectWithProperties.js /^function asDeepMatcher(value) {$/;" F
|
|
710
730
|
asSelfDescribing dist/hamjest.js /^function asSelfDescribing(value) {$/;" F
|
|
711
731
|
asSelfDescribing lib/Description.js /^function asSelfDescribing(value) {$/;" F
|
|
712
732
|
asciiToArray dist/hamjest.js /^ function asciiToArray(string) {$/;" F
|
|
@@ -823,6 +843,7 @@ baseTimes dist/hamjest.js /^ function baseTimes(n, iteratee) {$/;" F
|
|
|
823
843
|
baseToNumber dist/hamjest.js /^ function baseToNumber(value) {$/;" F
|
|
824
844
|
baseToPairs dist/hamjest.js /^ function baseToPairs(object, props) {$/;" F
|
|
825
845
|
baseToString dist/hamjest.js /^ function baseToString(value) {$/;" F
|
|
846
|
+
baseTrim dist/hamjest.js /^ function baseTrim(string) {$/;" F
|
|
826
847
|
baseUnary dist/hamjest.js /^ function baseUnary(func) {$/;" F
|
|
827
848
|
baseUniq dist/hamjest.js /^ function baseUniq(array, iteratee, comparator) {$/;" F
|
|
828
849
|
baseUnset dist/hamjest.js /^ function baseUnset(object, path) {$/;" F
|
|
@@ -838,7 +859,7 @@ before lib/matchers/DateComparisonMatcher.js /^ before: function (threshold) {$/
|
|
|
838
859
|
beforeOrEqualTo lib/matchers/DateComparisonMatcher.js /^ beforeOrEqualTo: function (threshold) {$/;" M
|
|
839
860
|
bind dist/hamjest.js /^Promise.bind = function (thisArg, value) {$/;" M
|
|
840
861
|
bind dist/hamjest.js /^Promise.prototype.bind = function (thisArg) {$/;" M
|
|
841
|
-
bind dist/hamjest.js /^var bind = function (fn,
|
|
862
|
+
bind dist/hamjest.js /^var bind = function (fn, state, unwrap) {$/;" F
|
|
842
863
|
binding dist/hamjest.js /^process.binding = function (name) {$/;" M
|
|
843
864
|
bindingPromise dist/hamjest.js /^ bindingPromise: maybePromise$/;" P
|
|
844
865
|
bindingPropagateFrom dist/hamjest.js /^function bindingPropagateFrom(parent, flags) {$/;" F
|
|
@@ -847,6 +868,7 @@ bindingResolved dist/hamjest.js /^var bindingResolved = function(thisArg, contex
|
|
|
847
868
|
body dist/hamjest.js /^ var body = "'use strict'; \\n\\$/;" V
|
|
848
869
|
bool dist/hamjest.js /^IsBoolean.bool = function () {$/;" M
|
|
849
870
|
bool lib/matchers/IsBoolean.js /^IsBoolean.bool = function () {$/;" M
|
|
871
|
+
boundFunction dist/hamjest.js /^ var boundFunction = function bound(\/* args... *\/) {$/;" F
|
|
850
872
|
boundValueFunction dist/hamjest.js /^ boundValueFunction: function() {$/;" M
|
|
851
873
|
boundValueFunction dist/hamjest.js /^function boundValueFunction() {$/;" F
|
|
852
874
|
browsers gulpfile.js /^ browsers: ['Chrome', 'Firefox'],$/;" P
|
|
@@ -855,11 +877,11 @@ build gulpfile.js /^ build,$/;" V
|
|
|
855
877
|
buildDist gulpfile.js /^ buildDist,$/;" V
|
|
856
878
|
buildDist gulpfile.js /^function buildDist() {$/;" F
|
|
857
879
|
cS session.vim /^nmap cS <Plug>CSurround$/;" m
|
|
858
|
-
cache dist/hamjest.js /^var cache = {};$/;" O
|
|
859
880
|
cacheHas dist/hamjest.js /^ function cacheHas(cache, key) {$/;" F
|
|
860
881
|
cachedClearTimeout dist/hamjest.js /^var cachedClearTimeout;$/;" V
|
|
861
882
|
cachedSetTimeout dist/hamjest.js /^var cachedSetTimeout;$/;" V
|
|
862
883
|
call dist/hamjest.js /^Promise.prototype.call = function (methodName) {$/;" M
|
|
884
|
+
callFn dist/hamjest.js /^ var callFn = function (value) {$/;" F
|
|
863
885
|
called dist/hamjest.js /^ var called = 0;$/;" V
|
|
864
886
|
caller dist/hamjest.js /^function caller(obj) {$/;" F
|
|
865
887
|
canAttachTrace dist/hamjest.js /^ canAttachTrace: canAttachTrace,$/;" P
|
|
@@ -879,7 +901,7 @@ cancellationSetOnCancel dist/hamjest.js /^function cancellationSetOnCancel(onCan
|
|
|
879
901
|
capability dist/hamjest.js /^ var capability = newPromiseCapability(C);$/;" V
|
|
880
902
|
capability dist/hamjest.js /^ var capability = newPromiseCapability(this);$/;" V
|
|
881
903
|
capitalize dist/hamjest.js /^ function capitalize(string) {$/;" F
|
|
882
|
-
capture dist/hamjest.js /^
|
|
904
|
+
capture dist/hamjest.js /^ var capture;$/;" V
|
|
883
905
|
captures dist/hamjest.js /^ var captures = [];$/;" A
|
|
884
906
|
cast dist/hamjest.js /^Promise.cast = function (obj) {$/;" M
|
|
885
907
|
castArray dist/hamjest.js /^ function castArray() {$/;" F
|
|
@@ -913,6 +935,7 @@ checkForgottenReturns dist/hamjest.js /^ checkForgottenReturns: checkForgotte
|
|
|
913
935
|
checkForgottenReturns dist/hamjest.js /^function checkForgottenReturns(returnValue, promiseCreated, name, promise,$/;" F
|
|
914
936
|
checkIteratee dist/hamjest.js /^ var checkIteratee = \/^(?:filter|find|map|reject)|While$\/.test(methodName),$/;" V
|
|
915
937
|
checkValid dist/hamjest.js /^function checkValid(ret, suffix, suffixRegexp) {$/;" F
|
|
938
|
+
children test/node/matchers/IsObjectWithPropertiesSpec.js /^ children: [$/;" P
|
|
916
939
|
chunk dist/hamjest.js /^ function chunk(array, size, guard) {$/;" F
|
|
917
940
|
clamp dist/hamjest.js /^ function clamp(number, lower, upper) {$/;" F
|
|
918
941
|
classString dist/hamjest.js /^ classString: classString,$/;" P
|
|
@@ -959,6 +982,7 @@ configurable lib/fixErrorJson.js /^ configurable: true,$/;" P
|
|
|
959
982
|
conforms dist/hamjest.js /^ function conforms(source) {$/;" F
|
|
960
983
|
conformsTo dist/hamjest.js /^ function conformsTo(object, source) {$/;" F
|
|
961
984
|
constant dist/hamjest.js /^ function constant(value) {$/;" F
|
|
985
|
+
construct dist/hamjest.js /^var construct = function (C, argsLength, args) {$/;" F
|
|
962
986
|
constructor dist/hamjest.js /^ re.constructor = {};$/;" P
|
|
963
987
|
constructor lib/matchers/Matcher.js /^ constructor(fns = {}) {$/;" M
|
|
964
988
|
constructor lib/matchers/TypeSafeMatcher.js /^ constructor(fns) {$/;" M
|
|
@@ -1043,7 +1067,7 @@ deburr dist/hamjest.js /^ function deburr(string) {$/;" F
|
|
|
1043
1067
|
deburredLetters dist/hamjest.js /^ var deburredLetters = {$/;" O
|
|
1044
1068
|
default dist/hamjest.js /^ default: \\n\\$/;" P
|
|
1045
1069
|
default dist/hamjest.js /^ default: \\n\\$/;" P
|
|
1046
|
-
default dist/hamjest.js /^
|
|
1070
|
+
default dist/hamjest.js /^ default: \/\/ \\d\\d?$/;" P
|
|
1047
1071
|
defaultClearTimeout dist/hamjest.js /^function defaultClearTimeout () {$/;" F
|
|
1048
1072
|
defaultFilter dist/hamjest.js /^var defaultFilter = function(name) {$/;" F
|
|
1049
1073
|
defaultFireEvent dist/hamjest.js /^function defaultFireEvent() { return false; }$/;" F
|
|
@@ -1352,7 +1376,6 @@ expect test/node/assertThatSpec.js /^ global.expect = () => {$/;" M
|
|
|
1352
1376
|
expected dist/hamjest.js /^ expected: expected,$/;" P
|
|
1353
1377
|
expected lib/promiseThat.js /^ expected: expected,$/;" P
|
|
1354
1378
|
exports dist/hamjest.js /^ module.exports = {$/;" P
|
|
1355
|
-
exports dist/hamjest.js /^module.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn \/* , thisArg *\/) {$/;" M
|
|
1356
1379
|
exports dist/hamjest.js /^module.exports = function ($this, dummy, Wrapper) {$/;" M
|
|
1357
1380
|
exports dist/hamjest.js /^module.exports = function () {$/;" M
|
|
1358
1381
|
exports dist/hamjest.js /^module.exports = function (C, x) {$/;" M
|
|
@@ -1362,7 +1385,6 @@ exports dist/hamjest.js /^module.exports = function (IteratorConstructor, NAME,
|
|
|
1362
1385
|
exports dist/hamjest.js /^module.exports = function (KEY, length, exec, sham) {$/;" M
|
|
1363
1386
|
exports dist/hamjest.js /^module.exports = function (METHOD_NAME) {$/;" M
|
|
1364
1387
|
exports dist/hamjest.js /^module.exports = function (METHOD_NAME, argument) {$/;" M
|
|
1365
|
-
exports dist/hamjest.js /^module.exports = function (METHOD_NAME, options) {$/;" M
|
|
1366
1388
|
exports dist/hamjest.js /^module.exports = function (NAME) {$/;" M
|
|
1367
1389
|
exports dist/hamjest.js /^module.exports = function (O, defaultConstructor) {$/;" M
|
|
1368
1390
|
exports dist/hamjest.js /^module.exports = function (Promise, apiRejection, tryConvertToPromise,$/;" M
|
|
@@ -1381,9 +1403,12 @@ exports dist/hamjest.js /^module.exports = function (it) {$/;" M
|
|
|
1381
1403
|
exports dist/hamjest.js /^module.exports = function (it, Constructor, name) {$/;" M
|
|
1382
1404
|
exports dist/hamjest.js /^module.exports = function (it, TAG, STATIC) {$/;" M
|
|
1383
1405
|
exports dist/hamjest.js /^module.exports = function (it, key) {$/;" M
|
|
1406
|
+
exports dist/hamjest.js /^module.exports = function (iterable, unboundFunction, options) {$/;" M
|
|
1407
|
+
exports dist/hamjest.js /^module.exports = function (iterator) {$/;" M
|
|
1384
1408
|
exports dist/hamjest.js /^module.exports = function (iterator, fn, value, ENTRIES) {$/;" M
|
|
1385
1409
|
exports dist/hamjest.js /^module.exports = function (key) {$/;" M
|
|
1386
1410
|
exports dist/hamjest.js /^module.exports = function (key, value) {$/;" M
|
|
1411
|
+
exports dist/hamjest.js /^module.exports = function (matched, str, position, captures, namedCaptures, replacement) {$/;" M
|
|
1387
1412
|
exports dist/hamjest.js /^module.exports = function (name) {$/;" M
|
|
1388
1413
|
exports dist/hamjest.js /^module.exports = function (namespace, method) {$/;" M
|
|
1389
1414
|
exports dist/hamjest.js /^module.exports = function (object, key, value) {$/;" M
|
|
@@ -1397,6 +1422,7 @@ exports dist/hamjest.js /^module.exports = function (value) {$/;" M
|
|
|
1397
1422
|
exports dist/hamjest.js /^module.exports = function (valueOrMatcher) {$/;" M
|
|
1398
1423
|
exports dist/hamjest.js /^module.exports = function from(arrayLike \/* , mapfn = undefined, thisArg = undefined *\/) {$/;" M
|
|
1399
1424
|
exports dist/hamjest.js /^module.exports = function getName(type) {$/;" M
|
|
1425
|
+
exports dist/hamjest.js /^module.exports = function repeat(count) {$/;" M
|
|
1400
1426
|
exports dist/hamjest.js /^module.exports = function returns(resultValueOrMatcher) {$/;" M
|
|
1401
1427
|
exports dist/hamjest.js /^module.exports = function typedError(errorType, messageValueOrMatcher) {$/;" M
|
|
1402
1428
|
exports dist/hamjest.js /^module.exports = function($/;" M
|
|
@@ -1429,6 +1455,7 @@ extractEntry dist/hamjest.js /^ function extractEntry(value, key) {$/;" F
|
|
|
1429
1455
|
f dist/hamjest.js /^ wrappedWellKnownSymbolModule.f = function (name) {$/;" M
|
|
1430
1456
|
f dist/hamjest.js /^module.exports.f = function (C) {$/;" M
|
|
1431
1457
|
f dist/hamjest.js /^module.exports.f = function getOwnPropertyNames(it) {$/;" M
|
|
1458
|
+
factories dist/hamjest.js /^var factories = {};$/;" O
|
|
1432
1459
|
fail dist/hamjest.js /^ fail,$/;" V
|
|
1433
1460
|
fail dist/hamjest.js /^function fail(reason) {$/;" F
|
|
1434
1461
|
fail lib/fail.js /^function fail(reason) {$/;" F
|
|
@@ -1491,7 +1518,6 @@ for dist/hamjest.js /^ for(var i = 0; i < count; ++i) {$/;" M
|
|
|
1491
1518
|
for dist/hamjest.js /^ for(var i = likelyArgumentCount + 1; i <= 3; ++i) {$/;" M
|
|
1492
1519
|
for dist/hamjest.js /^ for(var i = likelyArgumentCount - 1; i >= min; --i) {$/;" M
|
|
1493
1520
|
forEach dist/hamjest.js /^ function forEach(collection, iteratee) {$/;" F
|
|
1494
|
-
forEach dist/hamjest.js /^ forEach: forEach$/;" P
|
|
1495
1521
|
forEachRight dist/hamjest.js /^ function forEachRight(collection, iteratee) {$/;" F
|
|
1496
1522
|
forIn dist/hamjest.js /^ function forIn(object, iteratee) {$/;" F
|
|
1497
1523
|
forInRight dist/hamjest.js /^ function forInRight(object, iteratee) {$/;" F
|
|
@@ -1581,11 +1607,10 @@ getNativePromise dist/hamjest.js /^ getNativePromise: getNativePromise,$/;" P
|
|
|
1581
1607
|
getNativePromise dist/hamjest.js /^function getNativePromise() {$/;" F
|
|
1582
1608
|
getOwnPropertyDescriptor dist/hamjest.js /^ getOwnPropertyDescriptor: $getOwnPropertyDescriptor$/;" P
|
|
1583
1609
|
getOwnPropertyNames dist/hamjest.js /^ getOwnPropertyNames: $getOwnPropertyNames,$/;" P
|
|
1584
|
-
getOwnPropertyNames dist/hamjest.js /^ getOwnPropertyNames:
|
|
1610
|
+
getOwnPropertyNames dist/hamjest.js /^ getOwnPropertyNames: getOwnPropertyNames$/;" P
|
|
1585
1611
|
getOwnPropertySymbols dist/hamjest.js /^ getOwnPropertySymbols: $getOwnPropertySymbols$/;" P
|
|
1586
1612
|
getPrototypeOf dist/hamjest.js /^ getPrototypeOf: ObjectGetPrototypeOf,$/;" P
|
|
1587
1613
|
getRawTag dist/hamjest.js /^ function getRawTag(value) {$/;" F
|
|
1588
|
-
getSubstitution dist/hamjest.js /^ function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {$/;" F
|
|
1589
1614
|
getTag dist/hamjest.js /^ getTag = function(value) {$/;" M
|
|
1590
1615
|
getThen dist/hamjest.js /^function getThen(obj) {$/;" F
|
|
1591
1616
|
getValue dist/hamjest.js /^ function getValue(object, key) {$/;" F
|
|
@@ -1622,6 +1647,7 @@ has dist/hamjest.js /^ has = function (it) {$/;" M
|
|
|
1622
1647
|
has dist/hamjest.js /^ has: has,$/;" P
|
|
1623
1648
|
has dist/hamjest.js /^var set, get, has;$/;" V
|
|
1624
1649
|
hasCustomScheduler dist/hamjest.js /^Async.prototype.hasCustomScheduler = function() {$/;" M
|
|
1650
|
+
hasDeepProperties dist/hamjest.js /^IsObjectWithProperties.hasDeepProperties = function (properties) {$/;" M
|
|
1625
1651
|
hasDeepProperties lib/matchers/IsObjectWithProperties.js /^IsObjectWithProperties.hasDeepProperties = function (properties) {$/;" M
|
|
1626
1652
|
hasEnvVariables dist/hamjest.js /^ hasEnvVariables: hasEnvVariables,$/;" P
|
|
1627
1653
|
hasIn dist/hamjest.js /^ function hasIn(object, path) {$/;" F
|
|
@@ -1724,8 +1750,8 @@ interceptor dist/hamjest.js /^ interceptor = function(object) { return
|
|
|
1724
1750
|
interceptor dist/hamjest.js /^ var interceptor = function(value) {$/;" F
|
|
1725
1751
|
internal dist/hamjest.js /^ var internal = new Promise(INTERNAL);$/;" V
|
|
1726
1752
|
internalData dist/hamjest.js /^ internalData$/;" V
|
|
1727
|
-
internalReject dist/hamjest.js /^var internalReject = function (
|
|
1728
|
-
internalResolve dist/hamjest.js /^var internalResolve = function (
|
|
1753
|
+
internalReject dist/hamjest.js /^var internalReject = function (state, value, unwrap) {$/;" F
|
|
1754
|
+
internalResolve dist/hamjest.js /^var internalResolve = function (state, value, unwrap) {$/;" F
|
|
1729
1755
|
internalSplit dist/hamjest.js /^ internalSplit = function (separator, limit) {$/;" M
|
|
1730
1756
|
internalSplit dist/hamjest.js /^ var internalSplit;$/;" V
|
|
1731
1757
|
invokeFunc dist/hamjest.js /^ function invokeFunc(time) {$/;" F
|
|
@@ -1794,7 +1820,6 @@ isLength dist/hamjest.js /^ function isLength(value) {$/;" F
|
|
|
1794
1820
|
isMasked dist/hamjest.js /^ function isMasked(func) {$/;" F
|
|
1795
1821
|
isMatch dist/hamjest.js /^ function isMatch(object, source) {$/;" F
|
|
1796
1822
|
isMatchWith dist/hamjest.js /^ function isMatchWith(object, source, customizer) {$/;" F
|
|
1797
|
-
isMatcher dist/hamjest.js /^Matcher.isMatcher = function (valueOrMatcher) {$/;" M
|
|
1798
1823
|
isMatcher lib/matchers/Matcher.js /^ static isMatcher(valueOrMatcher) {$/;" M
|
|
1799
1824
|
isNaN dist/hamjest.js /^ function isNaN(value) {$/;" F
|
|
1800
1825
|
isNative dist/hamjest.js /^ function isNative(value) {$/;" F
|
|
@@ -1843,6 +1868,13 @@ join dist/hamjest.js /^Promise.join = function () {$/;" M
|
|
|
1843
1868
|
jsFiles gulpfile.js /^const jsFiles = [$/;" A
|
|
1844
1869
|
k dist/hamjest.js /^ var i, k, length, len, E;$/;" V
|
|
1845
1870
|
karmaConfig gulpfile.js /^ const karmaConfig = {$/;" O
|
|
1871
|
+
key dist/hamjest.js /^ key: "describeMismatch",$/;" P
|
|
1872
|
+
key dist/hamjest.js /^ key: "describeMismatchSafely",$/;" P
|
|
1873
|
+
key dist/hamjest.js /^ key: "describeTo",$/;" P
|
|
1874
|
+
key dist/hamjest.js /^ key: "isExpectedType",$/;" P
|
|
1875
|
+
key dist/hamjest.js /^ key: "isMatcher",$/;" P
|
|
1876
|
+
key dist/hamjest.js /^ key: "matches",$/;" P
|
|
1877
|
+
key dist/hamjest.js /^ key: "matchesSafely",$/;" P
|
|
1846
1878
|
key dist/hamjest.js /^ var FORCED, target, key, targetProperty, sourceProperty, descriptor;$/;" V
|
|
1847
1879
|
key dist/hamjest.js /^ var key;$/;" V
|
|
1848
1880
|
key2 test/node/matchers/IsArrayContainingSpec.js /^ key2: 7$/;" P
|
|
@@ -2035,13 +2067,10 @@ nameRE dist/hamjest.js /^var nameRE = \/^\\s*function ([^ (]*)\/;$/;" V
|
|
|
2035
2067
|
namedFunction test/node/matchers/IsFunctionSpec.js /^ function namedFunction() {$/;" F
|
|
2036
2068
|
namedGetter dist/hamjest.js /^function namedGetter(obj) {$/;" F
|
|
2037
2069
|
names dist/hamjest.js /^ names: ObjectKeys,$/;" P
|
|
2038
|
-
|
|
2039
|
-
nativeIndexOf dist/hamjest.js /^var nativeIndexOf = [].indexOf;$/;" A
|
|
2070
|
+
nativeConstruct dist/hamjest.js /^ nativeConstruct(function () { \/* empty *\/ });$/;" M
|
|
2040
2071
|
nativeKeysIn dist/hamjest.js /^ function nativeKeysIn(object) {$/;" F
|
|
2041
|
-
nativePropertyIsEnumerable dist/hamjest.js /^var nativePropertyIsEnumerable = {}.propertyIsEnumerable;$/;" O
|
|
2042
2072
|
nativeRegExpMethod dist/hamjest.js /^ var nativeRegExpMethod = \/.\/[SYMBOL];$/;" V
|
|
2043
2073
|
nativeSlice dist/hamjest.js /^var nativeSlice = [].slice;$/;" A
|
|
2044
|
-
nativeStartsWith dist/hamjest.js /^var nativeStartsWith = ''.startsWith;$/;" V
|
|
2045
2074
|
negate dist/hamjest.js /^ function negate(predicate) {$/;" F
|
|
2046
2075
|
newData dist/hamjest.js /^ var newData = [$/;" A
|
|
2047
2076
|
newGenericPromiseCapability dist/hamjest.js /^var newGenericPromiseCapability = newPromiseCapability;$/;" V
|
|
@@ -2074,7 +2103,7 @@ notThrowingFunction test/node/matchers/IsFunctionThrowingSpec.js /^ function no
|
|
|
2074
2103
|
nothing test/node/assertThatSpec.js /^ nothing() {$/;" M
|
|
2075
2104
|
notified dist/hamjest.js /^ notified: false,$/;" P
|
|
2076
2105
|
notify dist/hamjest.js /^ notify = function () {$/;" M
|
|
2077
|
-
notify dist/hamjest.js /^var notify = function (
|
|
2106
|
+
notify dist/hamjest.js /^var notify = function (state, isReject) {$/;" F
|
|
2078
2107
|
nth dist/hamjest.js /^ function nth(array, n) {$/;" F
|
|
2079
2108
|
nthArg dist/hamjest.js /^ function nthArg(n) {$/;" F
|
|
2080
2109
|
null dist/hamjest.js /^ null$/;" V
|
|
@@ -2092,9 +2121,9 @@ object lib/matchers/IsObject.js /^IsObject.object = function () {$/;" M
|
|
|
2092
2121
|
objectToString dist/hamjest.js /^ function objectToString(value) {$/;" F
|
|
2093
2122
|
old dist/hamjest.js /^var old;$/;" V
|
|
2094
2123
|
omitBy dist/hamjest.js /^ function omitBy(object, predicate) {$/;" F
|
|
2095
|
-
onHandleUnhandled dist/hamjest.js /^var onHandleUnhandled = function (
|
|
2124
|
+
onHandleUnhandled dist/hamjest.js /^var onHandleUnhandled = function (state) {$/;" F
|
|
2096
2125
|
onPossiblyUnhandledRejection dist/hamjest.js /^Promise.onPossiblyUnhandledRejection = function (fn) {$/;" M
|
|
2097
|
-
onUnhandled dist/hamjest.js /^var onUnhandled = function (
|
|
2126
|
+
onUnhandled dist/hamjest.js /^var onUnhandled = function (state) {$/;" F
|
|
2098
2127
|
onUnhandledRejectionHandled dist/hamjest.js /^Promise.onUnhandledRejectionHandled = function (fn) {$/;" M
|
|
2099
2128
|
once dist/hamjest.js /^ function once(func) {$/;" F
|
|
2100
2129
|
opts dist/hamjest.js /^ var opts = {attributes: true};$/;" O
|
|
@@ -2123,12 +2152,14 @@ parseLineInfo dist/hamjest.js /^function parseLineInfo(line) {$/;" F
|
|
|
2123
2152
|
parseLineInfoRegex dist/hamjest.js /^var parseLineInfoRegex = \/[\\\/<\\(]([^:\\\/]+):(\\d+):(?:\\d+)\\)?\\s*$\/;$/;" V
|
|
2124
2153
|
parseLinePattern dist/hamjest.js /^var parseLinePattern = \/[\\\/<\\(](.+?):(\\d+):(\\d+)\\)?\\s*$\/;$/;" V
|
|
2125
2154
|
parseStackAndMessage dist/hamjest.js /^function parseStackAndMessage(error) {$/;" F
|
|
2155
|
+
partner test/node/matchers/IsObjectWithPropertiesSpec.js /^ partner: {$/;" P
|
|
2126
2156
|
passedValue test/node/assertThatSpec.js /^ let passedValue;$/;" V
|
|
2127
2157
|
passedValue test/node/promiseThatSpec.js /^ let passedValue;$/;" V
|
|
2128
2158
|
passedValue test/node/utils/acceptingMatcherSpec.js /^ let passedValue;$/;" V
|
|
2129
2159
|
pattern dist/hamjest.js /^ var pattern = new RegExp(stringOrPattern);$/;" V
|
|
2130
2160
|
pattern lib/matchers/IsStringMatching.js /^ const pattern = new RegExp(stringOrPattern);$/;" V
|
|
2131
2161
|
peekContext dist/hamjest.js /^function peekContext() {$/;" F
|
|
2162
|
+
pet test/node/matchers/IsObjectWithPropertiesSpec.js /^ pet: {$/;" P
|
|
2132
2163
|
pickBy dist/hamjest.js /^ function pickBy(object, predicate) {$/;" F
|
|
2133
2164
|
point dist/hamjest.js /^ var point;$/;" V
|
|
2134
2165
|
port dist/hamjest.js /^var defer, channel, port;$/;" V
|
|
@@ -2187,7 +2218,6 @@ propagateFromFunction dist/hamjest.js /^ propagateFromFunction: function() {$
|
|
|
2187
2218
|
property dist/hamjest.js /^ function property(path) {$/;" F
|
|
2188
2219
|
propertyIsWritable dist/hamjest.js /^ propertyIsWritable: function() {$/;" M
|
|
2189
2220
|
propertyIsWritable dist/hamjest.js /^ propertyIsWritable: function(obj, prop) {$/;" M
|
|
2190
|
-
propertyMatchers lib/matchers/IsObjectWithProperties.js /^ const propertyMatchers = _.mapValues(properties, value => {$/;" F
|
|
2191
2221
|
propertyOf dist/hamjest.js /^ function propertyOf(object) {$/;" F
|
|
2192
2222
|
propertyToNestedMatcher dist/hamjest.js /^ var propertyToNestedMatcher = function propertyToNestedMatcher(matcher, prop) {$/;" F
|
|
2193
2223
|
propertyToNestedMatcher lib/matchers/IsObjectWithProperties.js /^ const propertyToNestedMatcher = (matcher, prop) => new IsObjectWithProperties({[prop]: matcher});$/;" F
|
|
@@ -2197,6 +2227,7 @@ props dist/hamjest.js /^Promise.prototype.props = function () {$/;" M
|
|
|
2197
2227
|
props dist/hamjest.js /^function props(promises) {$/;" F
|
|
2198
2228
|
propsFilter dist/hamjest.js /^function propsFilter(key) {$/;" F
|
|
2199
2229
|
proto dist/hamjest.js /^ proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;$/;" M
|
|
2230
|
+
proto dist/hamjest.js /^ var proto = newTarget.prototype;$/;" V
|
|
2200
2231
|
proto dist/hamjest.js /^ var proto = {}.constructor.prototype;$/;" O
|
|
2201
2232
|
proxy dist/hamjest.js /^ var proxy = function (key) {$/;" F
|
|
2202
2233
|
pullAll dist/hamjest.js /^ function pullAll(array, values) {$/;" F
|
|
@@ -2228,6 +2259,7 @@ reEscape dist/hamjest.js /^ var reEscape = \/<%-([\\s\\S]+?)%>\/g,$/;" V
|
|
|
2228
2259
|
reEscapeChar dist/hamjest.js /^ var reEscapeChar = \/\\\\(\\\\)?\/g;$/;" V
|
|
2229
2260
|
reEscapedHtml dist/hamjest.js /^ var reEscapedHtml = \/&(?:amp|lt|gt|quot|#39);\/g,$/;" V
|
|
2230
2261
|
reFlags dist/hamjest.js /^ var reFlags = \/\\w*$\/;$/;" V
|
|
2262
|
+
reForbiddenIdentifierChars dist/hamjest.js /^ var reForbiddenIdentifierChars = \/[()=,{}\\[\\]\\\/\\s]\/;$/;" V
|
|
2231
2263
|
reHasUnicodeWord dist/hamjest.js /^ var reHasUnicodeWord = \/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]\/;$/;" V
|
|
2232
2264
|
reIsBadHex dist/hamjest.js /^ var reIsBadHex = \/^[-+]0x[0-9a-f]+$\/i;$/;" V
|
|
2233
2265
|
reIsBinary dist/hamjest.js /^ var reIsBinary = \/^0b[01]+$\/i;$/;" V
|
|
@@ -2238,8 +2270,9 @@ reIsUint dist/hamjest.js /^ var reIsUint = \/^(?:0|[1-9]\\d*)$\/;$/;" V
|
|
|
2238
2270
|
reLatin dist/hamjest.js /^ var reLatin = \/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]\/g;$/;" V
|
|
2239
2271
|
reNoMatch dist/hamjest.js /^ var reNoMatch = \/($^)\/;$/;" V
|
|
2240
2272
|
reRegExpChar dist/hamjest.js /^ var reRegExpChar = \/[\\\\^$.*+?()[\\]{}|]\/g,$/;" V
|
|
2241
|
-
|
|
2273
|
+
reTrimStart dist/hamjest.js /^ var reTrimStart = \/^\\s+\/;$/;" V
|
|
2242
2274
|
reUnescapedString dist/hamjest.js /^ var reUnescapedString = \/['\\n\\r\\u2028\\u2029\\\\]\/g;$/;" V
|
|
2275
|
+
reWhitespace dist/hamjest.js /^ var reWhitespace = \/\\s\/;$/;" V
|
|
2243
2276
|
reWrapComment dist/hamjest.js /^ var reWrapComment = \/\\{(?:\\n\\\/\\* \\[wrapped with .+\\] \\*\\\/)?\\n?\/,$/;" V
|
|
2244
2277
|
reaction dist/hamjest.js /^ var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));$/;" V
|
|
2245
2278
|
reactions dist/hamjest.js /^ reactions: [],$/;" P
|
|
@@ -2303,6 +2336,7 @@ reorder dist/hamjest.js /^ function reorder(array, indexes) {$/;" F
|
|
|
2303
2336
|
repeat dist/hamjest.js /^ function repeat(string, n, guard) {$/;" F
|
|
2304
2337
|
replace dist/hamjest.js /^ function replace() {$/;" F
|
|
2305
2338
|
replace dist/hamjest.js /^ function replace(searchValue, replaceValue) {$/;" F
|
|
2339
|
+
replace dist/hamjest.js /^var replace = ''.replace;$/;" V
|
|
2306
2340
|
replaceHolders dist/hamjest.js /^ function replaceHolders(array, placeholder) {$/;" F
|
|
2307
2341
|
replacement dist/hamjest.js /^var replacement = \/#|\\.prototype\\.\/;$/;" V
|
|
2308
2342
|
replacerArgs dist/hamjest.js /^ var replacerArgs = [matched].concat(captures, position, S);$/;" A
|
|
@@ -2435,6 +2469,7 @@ setCacheAdd dist/hamjest.js /^ function setCacheAdd(value) {$/;" F
|
|
|
2435
2469
|
setCacheHas dist/hamjest.js /^ function setCacheHas(value) {$/;" F
|
|
2436
2470
|
setHowMany dist/hamjest.js /^SomePromiseArray.prototype.setHowMany = function (count) {$/;" M
|
|
2437
2471
|
setInterval dist/hamjest.js /^exports.setInterval = function() {$/;" M
|
|
2472
|
+
setPrototypeOf dist/hamjest.js /^ setPrototypeOf: setPrototypeOf$/;" P
|
|
2438
2473
|
setReflectHandler dist/hamjest.js /^ setReflectHandler: function(fn) {$/;" M
|
|
2439
2474
|
setScheduler dist/hamjest.js /^Async.prototype.setScheduler = function(fn) {$/;" M
|
|
2440
2475
|
setScheduler dist/hamjest.js /^Promise.setScheduler = function(fn) {$/;" M
|
|
@@ -2471,6 +2506,7 @@ size dist/hamjest.js /^ function size(collection) {$/;" F
|
|
|
2471
2506
|
size dist/hamjest.js /^ var size = 0;$/;" V
|
|
2472
2507
|
slice dist/hamjest.js /^ LazyWrapper.prototype.slice = function(start, end) {$/;" M
|
|
2473
2508
|
slice dist/hamjest.js /^ function slice(array, start, end) {$/;" F
|
|
2509
|
+
slice dist/hamjest.js /^var slice = [].slice;$/;" A
|
|
2474
2510
|
snip dist/hamjest.js /^function snip(str) {$/;" F
|
|
2475
2511
|
some dist/hamjest.js /^ function some(collection, predicate, guard) {$/;" F
|
|
2476
2512
|
some dist/hamjest.js /^Promise.prototype.some = function (howMany) {$/;" M
|
|
@@ -2511,10 +2547,10 @@ startsWith dist/hamjest.js /^ function startsWith(string, target, position) {
|
|
|
2511
2547
|
startsWith lib/matchers/SubstringMatcher.js /^ startsWith(prefix) {$/;" M
|
|
2512
2548
|
state dist/hamjest.js /^ state: PENDING,$/;" P
|
|
2513
2549
|
state dist/hamjest.js /^ var state;$/;" V
|
|
2550
|
+
state dist/hamjest.js /^ var state;$/;" V
|
|
2514
2551
|
step dist/hamjest.js /^ var length, result, step, iterator, next, value;$/;" V
|
|
2515
2552
|
sticky dist/hamjest.js /^ var sticky;$/;" V
|
|
2516
|
-
stop dist/hamjest.js /^
|
|
2517
|
-
store dist/hamjest.js /^ var store = new WeakMap();$/;" V
|
|
2553
|
+
stop dist/hamjest.js /^ var stop = function (condition) {$/;" F
|
|
2518
2554
|
str dist/hamjest.js /^ var str = {}.toString;$/;" O
|
|
2519
2555
|
str dist/hamjest.js /^ var str;$/;" V
|
|
2520
2556
|
strictIndexOf dist/hamjest.js /^ function strictIndexOf(array, value, fromIndex) {$/;" F
|
|
@@ -2633,7 +2669,6 @@ thrower dist/hamjest.js /^ function thrower(e) {$/;" F
|
|
|
2633
2669
|
thrower dist/hamjest.js /^ thrower: thrower,$/;" P
|
|
2634
2670
|
thrower dist/hamjest.js /^function thrower() {$/;" F
|
|
2635
2671
|
thrower dist/hamjest.js /^function thrower(r) {$/;" F
|
|
2636
|
-
thrower dist/hamjest.js /^var thrower = function (it) { throw it; };$/;" F
|
|
2637
2672
|
throwing test/node/matchers/IsFunctionThrowingSpec.js /^ function throwing(value) {$/;" F
|
|
2638
2673
|
throwingAssertionErrorFunction test/node/matchers/IsFunctionThrowingSpec.js /^ function throwingAssertionErrorFunction(message) {$/;" F
|
|
2639
2674
|
throwingErrorFunction test/node/matchers/IsFunctionThrowingSpec.js /^ function throwingErrorFunction() {$/;" F
|
|
@@ -2674,6 +2709,7 @@ transforms dist/hamjest.js /^ transforms = (transforms.length == 1 && isArr
|
|
|
2674
2709
|
trim dist/hamjest.js /^ function trim(string, chars, guard) {$/;" F
|
|
2675
2710
|
trimEnd dist/hamjest.js /^ function trimEnd(string, chars, guard) {$/;" F
|
|
2676
2711
|
trimStart dist/hamjest.js /^ function trimStart(string, chars, guard) {$/;" F
|
|
2712
|
+
trimmedEndIndex dist/hamjest.js /^ function trimmedEndIndex(string) {$/;" F
|
|
2677
2713
|
true test/node/matchers/truthySpec.js /^ true,$/;" V
|
|
2678
2714
|
truncate dist/hamjest.js /^ function truncate(string, options) {$/;" F
|
|
2679
2715
|
truthy dist/hamjest.js /^function truthy() {$/;" F
|
|
@@ -56,7 +56,7 @@ describe('IsArrayContainingInAnyOrder', () => {
|
|
|
56
56
|
|
|
57
57
|
sut.describeMismatch(['expected', 7, 100, 'item', 'surplus item'], description);
|
|
58
58
|
|
|
59
|
-
__.assertThat(description.get(), __.equalTo('not matched:\n\t<100>,\n\t"surplus item"\nfrom ["expected"
|
|
59
|
+
__.assertThat(description.get(), __.equalTo('not matched:\n\t<100>,\n\t"surplus item"\nfrom [\n\t"expected",\n\t<7>,\n\t<100>,\n\t"item",\n\t"surplus item"\n]'));
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
it('should contain unmatched matchers', () => {
|