mirror of
https://github.com/actions/labeler.git
synced 2025-12-17 23:59:40 +00:00
build
This commit is contained in:
4
node_modules/expect/LICENSE
generated
vendored
4
node_modules/expect/LICENSE
generated
vendored
@@ -1,8 +1,6 @@
|
||||
MIT License
|
||||
|
||||
For Jest software
|
||||
|
||||
Copyright (c) 2014-present, Facebook, Inc.
|
||||
Copyright (c) Facebook, Inc. and its affiliates.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
||||
3417
node_modules/expect/build-es5/index.js
generated
vendored
3417
node_modules/expect/build-es5/index.js
generated
vendored
File diff suppressed because it is too large
Load Diff
2
node_modules/expect/build-es5/index.js.map
generated
vendored
2
node_modules/expect/build-es5/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/expect/build/index.d.ts.map
generated
vendored
2
node_modules/expect/build/index.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAIL,QAAQ,IAAI,gBAAgB,EAC5B,YAAY,IAAI,gBAAgB,EAKhC,MAAM,EACP,MAAM,SAAS,CAAC;AAqYjB,QAAA,MAAM,YAAY,QAAmB,CAAC;AAGtC,kBAAU,YAAY,CAAC;IACrB,KAAY,YAAY,GAAG,gBAAgB,CAAC;IAC5C,UAAiB,QAAQ,CAAC,CAAC,CAAE,SAAQ,gBAAgB,CAAC,CAAC,CAAC;KAAG;CAC5D;AAED,SAAS,YAAY,CAAC"}
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAIL,QAAQ,IAAI,gBAAgB,EAC5B,YAAY,IAAI,gBAAgB,EAKhC,MAAM,EACP,MAAM,SAAS,CAAC;AAkYjB,QAAA,MAAM,YAAY,QAAmB,CAAC;AAGtC,kBAAU,YAAY,CAAC;IACrB,KAAY,YAAY,GAAG,gBAAgB,CAAC;IAC5C,UAAiB,QAAQ,CAAC,CAAC,CAAE,SAAQ,gBAAgB,CAAC,CAAC,CAAC;KAAG;CAC5D;AAED,SAAS,YAAY,CAAC"}
|
||||
2
node_modules/expect/build/index.js
generated
vendored
2
node_modules/expect/build/index.js
generated
vendored
@@ -339,7 +339,7 @@ const makeThrowingMatcher = (matcher, isNot, promise, actual, err) =>
|
||||
let potentialResult;
|
||||
|
||||
try {
|
||||
potentialResult = matcher.apply(matcherContext, [actual].concat(args));
|
||||
potentialResult = matcher.call(matcherContext, actual, ...args);
|
||||
|
||||
if (isPromise(potentialResult)) {
|
||||
const asyncResult = potentialResult;
|
||||
|
||||
2
node_modules/expect/build/jasmineUtils.d.ts.map
generated
vendored
2
node_modules/expect/build/jasmineUtils.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"jasmineUtils.d.ts","sourceRoot":"","sources":["../src/jasmineUtils.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAG/B,wBAAgB,MAAM,CACpB,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,OAAO,EACV,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAC7B,WAAW,CAAC,EAAE,OAAO,GACpB,OAAO,CAGT;AA4MD,wBAAgB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,WAEnD;AAYD,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,UASvC;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,WAEnC;AAcD,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAUzE;AAOD,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,GAAG,WAMxD;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,GAAG,WAMpD"}
|
||||
{"version":3,"file":"jasmineUtils.d.ts","sourceRoot":"","sources":["../src/jasmineUtils.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAG/B,wBAAgB,MAAM,CACpB,CAAC,EAAE,OAAO,EACV,CAAC,EAAE,OAAO,EACV,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAC7B,WAAW,CAAC,EAAE,OAAO,GACpB,OAAO,CAGT;AA6MD,wBAAgB,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,WAEnD;AAYD,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,UASvC;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,WAEnC;AAcD,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAUzE;AAOD,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,GAAG,WAMxD;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,GAAG,WAMpD"}
|
||||
2
node_modules/expect/build/jestMatchersObject.js
generated
vendored
2
node_modules/expect/build/jestMatchersObject.js
generated
vendored
@@ -16,7 +16,7 @@ const JEST_MATCHERS_OBJECT = Symbol.for('$$jest-matchers-object'); // Notes a bu
|
||||
const INTERNAL_MATCHER_FLAG = Symbol.for('$$jest-internal-matcher');
|
||||
exports.INTERNAL_MATCHER_FLAG = INTERNAL_MATCHER_FLAG;
|
||||
|
||||
if (!global[JEST_MATCHERS_OBJECT]) {
|
||||
if (!global.hasOwnProperty(JEST_MATCHERS_OBJECT)) {
|
||||
Object.defineProperty(global, JEST_MATCHERS_OBJECT, {
|
||||
value: {
|
||||
matchers: Object.create(null),
|
||||
|
||||
2
node_modules/expect/build/matchers.d.ts.map
generated
vendored
2
node_modules/expect/build/matchers.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"matchers.d.ts","sourceRoot":"","sources":["../src/matchers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAoBH,OAAO,EAAC,cAAc,EAAe,MAAM,SAAS,CAAC;AAwCrD,QAAA,MAAM,QAAQ,EAAE,cA81Bf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
||||
{"version":3,"file":"matchers.d.ts","sourceRoot":"","sources":["../src/matchers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAqBH,OAAO,EAAC,cAAc,EAAe,MAAM,SAAS,CAAC;AA0CrD,QAAA,MAAM,QAAQ,EAAE,cA+1Bf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
||||
35
node_modules/expect/build/matchers.js
generated
vendored
35
node_modules/expect/build/matchers.js
generated
vendored
@@ -51,7 +51,10 @@ function _interopRequireWildcard(obj) {
|
||||
const EXPECTED_LABEL = 'Expected';
|
||||
const RECEIVED_LABEL = 'Received';
|
||||
const EXPECTED_VALUE_LABEL = 'Expected value';
|
||||
const RECEIVED_VALUE_LABEL = 'Received value';
|
||||
const RECEIVED_VALUE_LABEL = 'Received value'; // The optional property of matcher context is true if undefined.
|
||||
|
||||
const isExpand = expand => expand !== false;
|
||||
|
||||
const toStrictEqualTesters = [
|
||||
_utils.iterableEquality,
|
||||
_utils.typeEquality,
|
||||
@@ -114,12 +117,12 @@ const matchers = {
|
||||
`If it should pass with deep equality, replace "${matcherName}" with "${deepEqualityName}"`
|
||||
) + '\n\n'
|
||||
: '') +
|
||||
(0, _print.printDiffOrStringify)(
|
||||
(0, _jestMatcherUtils.printDiffOrStringify)(
|
||||
expected,
|
||||
received,
|
||||
EXPECTED_LABEL,
|
||||
RECEIVED_LABEL,
|
||||
this.expand
|
||||
isExpand(this.expand)
|
||||
)
|
||||
);
|
||||
}; // Passing the actual and expected objects so that a custom reporter
|
||||
@@ -141,7 +144,8 @@ const matchers = {
|
||||
const options = {
|
||||
isNot: this.isNot,
|
||||
promise: this.promise,
|
||||
secondArgument
|
||||
secondArgument,
|
||||
secondArgumentColor: arg => arg
|
||||
};
|
||||
(0, _jestMatcherUtils.ensureNumbers)(
|
||||
received,
|
||||
@@ -179,8 +183,9 @@ const matchers = {
|
||||
received
|
||||
)}\n` +
|
||||
'\n' +
|
||||
`Expected precision: ${(0,
|
||||
_jestMatcherUtils.printExpected)(precision)}\n` +
|
||||
`Expected precision: ${(0, _jestMatcherUtils.stringify)(
|
||||
precision
|
||||
)}\n` +
|
||||
`Expected difference: not < ${(0,
|
||||
_jestMatcherUtils.printExpected)(expectedDiff)}\n` +
|
||||
`Received difference: ${(0,
|
||||
@@ -196,7 +201,7 @@ const matchers = {
|
||||
`Expected: ${(0, _jestMatcherUtils.printExpected)(expected)}\n` +
|
||||
`Received: ${(0, _jestMatcherUtils.printReceived)(received)}\n` +
|
||||
'\n' +
|
||||
`Expected precision: ${(0, _jestMatcherUtils.printExpected)(
|
||||
`Expected precision: ${(0, _jestMatcherUtils.stringify)(
|
||||
precision
|
||||
)}\n` +
|
||||
`Expected difference: < ${(0, _jestMatcherUtils.printExpected)(
|
||||
@@ -761,12 +766,12 @@ const matchers = {
|
||||
options
|
||||
) +
|
||||
'\n\n' +
|
||||
(0, _print.printDiffOrStringify)(
|
||||
(0, _jestMatcherUtils.printDiffOrStringify)(
|
||||
expected,
|
||||
received,
|
||||
EXPECTED_LABEL,
|
||||
RECEIVED_LABEL,
|
||||
this.expand
|
||||
isExpand(this.expand)
|
||||
); // Passing the actual and expected objects so that a custom reporter
|
||||
// could access them, for example in order to display a custom visual diff,
|
||||
// or create a different error message
|
||||
@@ -1025,12 +1030,12 @@ const matchers = {
|
||||
)}\n` +
|
||||
(hasCompletePath
|
||||
? '\n' +
|
||||
(0, _print.printDiffOrStringify)(
|
||||
(0, _jestMatcherUtils.printDiffOrStringify)(
|
||||
expectedValue,
|
||||
receivedValue,
|
||||
EXPECTED_VALUE_LABEL,
|
||||
RECEIVED_VALUE_LABEL,
|
||||
this.expand
|
||||
isExpand(this.expand)
|
||||
)
|
||||
: `Received path: ${(0, _jestMatcherUtils.printReceived)(
|
||||
expectedPathType === 'array' || receivedPath.length === 0
|
||||
@@ -1251,12 +1256,12 @@ const matchers = {
|
||||
options
|
||||
) +
|
||||
'\n\n' +
|
||||
(0, _print.printDiffOrStringify)(
|
||||
(0, _jestMatcherUtils.printDiffOrStringify)(
|
||||
expected,
|
||||
(0, _utils.getObjectSubset)(received, expected),
|
||||
EXPECTED_LABEL,
|
||||
RECEIVED_LABEL,
|
||||
this.expand
|
||||
isExpand(this.expand)
|
||||
);
|
||||
return {
|
||||
message,
|
||||
@@ -1299,12 +1304,12 @@ const matchers = {
|
||||
options
|
||||
) +
|
||||
'\n\n' +
|
||||
(0, _print.printDiffOrStringify)(
|
||||
(0, _jestMatcherUtils.printDiffOrStringify)(
|
||||
expected,
|
||||
received,
|
||||
EXPECTED_LABEL,
|
||||
RECEIVED_LABEL,
|
||||
this.expand
|
||||
isExpand(this.expand)
|
||||
); // Passing the actual and expected objects so that a custom reporter
|
||||
// could access them, for example in order to display a custom visual diff,
|
||||
// or create a different error message
|
||||
|
||||
1
node_modules/expect/build/print.d.ts
generated
vendored
1
node_modules/expect/build/print.d.ts
generated
vendored
@@ -8,7 +8,6 @@
|
||||
export declare const printReceivedStringContainExpectedSubstring: (received: string, start: number, length: number) => string;
|
||||
export declare const printReceivedStringContainExpectedResult: (received: string, result: RegExpExecArray | null) => string;
|
||||
export declare const printReceivedArrayContainExpectedItem: (received: unknown[], index: number) => string;
|
||||
export declare const printDiffOrStringify: (expected: unknown, received: unknown, expectedLabel: string, receivedLabel: string, expand?: boolean | undefined) => string;
|
||||
export declare const printExpectedConstructorName: (label: string, expected: Function) => string;
|
||||
export declare const printExpectedConstructorNameNot: (label: string, expected: Function) => string;
|
||||
export declare const printReceivedConstructorName: (label: string, received: Function) => string;
|
||||
|
||||
2
node_modules/expect/build/print.d.ts.map
generated
vendored
2
node_modules/expect/build/print.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../src/print.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmBH,eAAO,MAAM,2CAA2C,6DAWrD,CAAC;AAEJ,eAAO,MAAM,wCAAwC,8DAU9C,CAAC;AAKR,eAAO,MAAM,qCAAqC,gDAa/C,CAAC;AA8BJ,eAAO,MAAM,oBAAoB,8HAsChC,CAAC;AAEF,eAAO,MAAM,4BAA4B,+CAGqB,CAAC;AAE/D,eAAO,MAAM,+BAA+B,+CAGiB,CAAC;AAE9D,eAAO,MAAM,4BAA4B,+CAGsB,CAAC;AAGhE,eAAO,MAAM,+BAA+B,mEAgBoB,CAAC"}
|
||||
{"version":3,"file":"print.d.ts","sourceRoot":"","sources":["../src/print.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAcH,eAAO,MAAM,2CAA2C,6DAWrD,CAAC;AAEJ,eAAO,MAAM,wCAAwC,8DAU9C,CAAC;AAKR,eAAO,MAAM,qCAAqC,gDAa/C,CAAC;AAEJ,eAAO,MAAM,4BAA4B,+CAGqB,CAAC;AAE/D,eAAO,MAAM,+BAA+B,+CAGiB,CAAC;AAE9D,eAAO,MAAM,4BAA4B,+CAGsB,CAAC;AAGhE,eAAO,MAAM,+BAA+B,mEAgBoB,CAAC"}
|
||||
108
node_modules/expect/build/print.js
generated
vendored
108
node_modules/expect/build/print.js
generated
vendored
@@ -3,39 +3,10 @@
|
||||
Object.defineProperty(exports, '__esModule', {
|
||||
value: true
|
||||
});
|
||||
exports.printReceivedConstructorNameNot = exports.printReceivedConstructorName = exports.printExpectedConstructorNameNot = exports.printExpectedConstructorName = exports.printDiffOrStringify = exports.printReceivedArrayContainExpectedItem = exports.printReceivedStringContainExpectedResult = exports.printReceivedStringContainExpectedSubstring = void 0;
|
||||
|
||||
var _jestGetType = _interopRequireWildcard(require('jest-get-type'));
|
||||
exports.printReceivedConstructorNameNot = exports.printReceivedConstructorName = exports.printExpectedConstructorNameNot = exports.printExpectedConstructorName = exports.printReceivedArrayContainExpectedItem = exports.printReceivedStringContainExpectedResult = exports.printReceivedStringContainExpectedSubstring = void 0;
|
||||
|
||||
var _jestMatcherUtils = require('jest-matcher-utils');
|
||||
|
||||
var _utils = require('./utils');
|
||||
|
||||
function _interopRequireWildcard(obj) {
|
||||
if (obj && obj.__esModule) {
|
||||
return obj;
|
||||
} else {
|
||||
var newObj = {};
|
||||
if (obj != null) {
|
||||
for (var key in obj) {
|
||||
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
var desc =
|
||||
Object.defineProperty && Object.getOwnPropertyDescriptor
|
||||
? Object.getOwnPropertyDescriptor(obj, key)
|
||||
: {};
|
||||
if (desc.get || desc.set) {
|
||||
Object.defineProperty(newObj, key, desc);
|
||||
} else {
|
||||
newObj[key] = obj[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
newObj.default = obj;
|
||||
return newObj;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
||||
*
|
||||
@@ -89,83 +60,6 @@ const printReceivedArrayContainExpectedItem = (received, index) =>
|
||||
|
||||
exports.printReceivedArrayContainExpectedItem = printReceivedArrayContainExpectedItem;
|
||||
|
||||
const shouldPrintDiff = (expected, received) => {
|
||||
const expectedType = (0, _jestGetType.default)(expected);
|
||||
const receivedType = (0, _jestGetType.default)(received);
|
||||
|
||||
if (expectedType !== receivedType) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((0, _jestGetType.isPrimitive)(expected)) {
|
||||
// Print diff only if both strings have more than one line.
|
||||
return (
|
||||
expectedType === 'string' && !(0, _utils.isOneline)(expected, received)
|
||||
);
|
||||
}
|
||||
|
||||
if (
|
||||
expectedType === 'date' ||
|
||||
expectedType === 'function' ||
|
||||
expectedType === 'regexp'
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (expected instanceof Error && received instanceof Error) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
const printDiffOrStringify = (
|
||||
expected,
|
||||
received,
|
||||
expectedLabel,
|
||||
receivedLabel,
|
||||
expand
|
||||
) => {
|
||||
// Cannot use same serialization as shortcut to avoid diff,
|
||||
// because stringify (that is, pretty-format with min option)
|
||||
// omits constructor name for array or object, too bad so sad :(
|
||||
const difference = shouldPrintDiff(expected, received)
|
||||
? (0, _jestMatcherUtils.diff)(expected, received, {
|
||||
aAnnotation: expectedLabel,
|
||||
bAnnotation: receivedLabel,
|
||||
expand
|
||||
}) // string | null
|
||||
: null; // Cannot reuse value of stringify(received) in report string,
|
||||
// because printReceived does inverse highlight space at end of line,
|
||||
// but RECEIVED_COLOR does not (it refers to a plain chalk method).
|
||||
|
||||
if (
|
||||
typeof difference === 'string' &&
|
||||
difference.includes('- ' + expectedLabel) &&
|
||||
difference.includes('+ ' + receivedLabel)
|
||||
) {
|
||||
return difference;
|
||||
}
|
||||
|
||||
const printLabel = (0, _jestMatcherUtils.getLabelPrinter)(
|
||||
expectedLabel,
|
||||
receivedLabel
|
||||
);
|
||||
return (
|
||||
`${printLabel(expectedLabel)}${(0, _jestMatcherUtils.printExpected)(
|
||||
expected
|
||||
)}\n` +
|
||||
`${printLabel(receivedLabel)}${
|
||||
(0, _jestMatcherUtils.stringify)(expected) ===
|
||||
(0, _jestMatcherUtils.stringify)(received)
|
||||
? 'serializes to the same string'
|
||||
: (0, _jestMatcherUtils.printReceived)(received)
|
||||
}`
|
||||
);
|
||||
};
|
||||
|
||||
exports.printDiffOrStringify = printDiffOrStringify;
|
||||
|
||||
const printExpectedConstructorName = (label, expected) =>
|
||||
printConstructorName(label, expected, false, true) + '\n';
|
||||
|
||||
|
||||
1
node_modules/expect/build/spyMatchers.d.ts
generated
vendored
1
node_modules/expect/build/spyMatchers.d.ts
generated
vendored
@@ -3,7 +3,6 @@
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*
|
||||
*/
|
||||
import { MatchersObject } from './types';
|
||||
declare const spyMatchers: MatchersObject;
|
||||
|
||||
2
node_modules/expect/build/spyMatchers.d.ts.map
generated
vendored
2
node_modules/expect/build/spyMatchers.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"spyMatchers.d.ts","sourceRoot":"","sources":["../src/spyMatchers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAeH,OAAO,EAAC,cAAc,EAAwB,MAAM,SAAS,CAAC;AAua9D,QAAA,MAAM,WAAW,EAAE,cAyBlB,CAAC;AAoJF,eAAe,WAAW,CAAC"}
|
||||
{"version":3,"file":"spyMatchers.d.ts","sourceRoot":"","sources":["../src/spyMatchers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAkBH,OAAO,EAAC,cAAc,EAAsC,MAAM,SAAS,CAAC;AAykC5E,QAAA,MAAM,WAAW,EAAE,cAyBlB,CAAC;AA6CF,eAAe,WAAW,CAAC"}
|
||||
1948
node_modules/expect/build/spyMatchers.js
generated
vendored
1948
node_modules/expect/build/spyMatchers.js
generated
vendored
File diff suppressed because it is too large
Load Diff
2
node_modules/expect/build/toThrowMatchers.d.ts.map
generated
vendored
2
node_modules/expect/build/toThrowMatchers.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"toThrowMatchers.d.ts","sourceRoot":"","sources":["../src/toThrowMatchers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAqBH,OAAO,EACL,cAAc,EAEd,YAAY,EAEb,MAAM,SAAS,CAAC;AAwCjB,eAAO,MAAM,aAAa,0EA6DvB,CAAC;AAEJ,QAAA,MAAM,QAAQ,EAAE,cAGf,CAAC;AA6RF,eAAe,QAAQ,CAAC"}
|
||||
{"version":3,"file":"toThrowMatchers.d.ts","sourceRoot":"","sources":["../src/toThrowMatchers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAsBH,OAAO,EACL,cAAc,EAEd,YAAY,EAEb,MAAM,SAAS,CAAC;AAwCjB,eAAO,MAAM,aAAa,0EA6DvB,CAAC;AAEJ,QAAA,MAAM,QAAQ,EAAE,cAGf,CAAC;AAsSF,eAAe,QAAQ,CAAC"}
|
||||
17
node_modules/expect/build/toThrowMatchers.js
generated
vendored
17
node_modules/expect/build/toThrowMatchers.js
generated
vendored
@@ -233,13 +233,22 @@ const toThrowExpectedObject = (matcherName, options, thrown, expected) => {
|
||||
options
|
||||
) +
|
||||
'\n\n' +
|
||||
formatExpected('Expected message: ', expected.message) +
|
||||
(thrown === null
|
||||
? '\n' + DID_NOT_THROW
|
||||
? formatExpected('Expected message: ', expected.message) +
|
||||
'\n' +
|
||||
DID_NOT_THROW
|
||||
: thrown.hasMessage
|
||||
? formatReceived('Received message: ', thrown, 'message') +
|
||||
? (0, _jestMatcherUtils.printDiffOrStringify)(
|
||||
expected.message,
|
||||
thrown.message,
|
||||
'Expected message',
|
||||
'Received message',
|
||||
true
|
||||
) +
|
||||
'\n' +
|
||||
formatStack(thrown)
|
||||
: formatReceived('Received value: ', thrown, 'value'));
|
||||
: formatExpected('Expected message: ', expected.message) +
|
||||
formatReceived('Received value: ', thrown, 'value'));
|
||||
return {
|
||||
message,
|
||||
pass
|
||||
|
||||
6
node_modules/expect/build/types.d.ts
generated
vendored
6
node_modules/expect/build/types.d.ts
generated
vendored
@@ -7,13 +7,17 @@
|
||||
*/
|
||||
import { Config } from '@jest/types';
|
||||
import * as jestMatcherUtils from 'jest-matcher-utils';
|
||||
import { INTERNAL_MATCHER_FLAG } from './jestMatchersObject';
|
||||
export declare type SyncExpectationResult = {
|
||||
pass: boolean;
|
||||
message: () => string;
|
||||
};
|
||||
export declare type AsyncExpectationResult = Promise<SyncExpectationResult>;
|
||||
export declare type ExpectationResult = SyncExpectationResult | AsyncExpectationResult;
|
||||
export declare type RawMatcherFn = (received: any, expected: any, options?: any) => ExpectationResult;
|
||||
export declare type RawMatcherFn = {
|
||||
(received: any, expected: any, options?: any): ExpectationResult;
|
||||
[INTERNAL_MATCHER_FLAG]?: boolean;
|
||||
};
|
||||
export declare type ThrowingMatcherFn = (actual: any) => void;
|
||||
export declare type PromiseMatcherFn = (actual: any) => Promise<void>;
|
||||
export declare type Tester = (a: any, b: any) => boolean | undefined;
|
||||
|
||||
2
node_modules/expect/build/types.d.ts.map
generated
vendored
2
node_modules/expect/build/types.d.ts.map
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/expect/build/types.js
generated
vendored
2
node_modules/expect/build/types.js
generated
vendored
@@ -1 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
var _jestMatchersObject = require('./jestMatchersObject');
|
||||
|
||||
4
node_modules/expect/build/utils.d.ts
generated
vendored
4
node_modules/expect/build/utils.d.ts
generated
vendored
@@ -12,8 +12,8 @@ declare type GetPath = {
|
||||
value?: unknown;
|
||||
};
|
||||
export declare const hasOwnProperty: (object: object, key: string) => boolean;
|
||||
export declare const getPath: (object: object, propertyPath: string | string[]) => GetPath;
|
||||
export declare const getObjectSubset: (object: any, subset: any) => any;
|
||||
export declare const getPath: (object: Record<string, any>, propertyPath: string | string[]) => GetPath;
|
||||
export declare const getObjectSubset: (object: any, subset: any, seenReferences?: WeakMap<object, boolean>) => any;
|
||||
export declare const iterableEquality: (a: any, b: any, aStack?: any[], bStack?: any[]) => boolean | undefined;
|
||||
export declare const subsetEquality: (object: any, subset: any) => boolean | undefined;
|
||||
export declare const typeEquality: (a: any, b: any) => false | undefined;
|
||||
|
||||
2
node_modules/expect/build/utils.d.ts.map
generated
vendored
2
node_modules/expect/build/utils.d.ts.map
generated
vendored
@@ -1 +1 @@
|
||||
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,aAAK,OAAO,GAAG;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAyBF,eAAO,MAAM,cAAc,0CAEY,CAAC;AAExC,eAAO,MAAM,OAAO,8DAoDnB,CAAC;AAIF,eAAO,MAAM,eAAe,mCA2B3B,CAAC;AAOF,eAAO,MAAM,gBAAgB,yEAqH5B,CAAC;AASF,eAAO,MAAM,cAAc,mDAc1B,CAAC;AAEF,eAAO,MAAM,YAAY,uCAMxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,iDAW/B,CAAC;AAEF,eAAO,MAAM,SAAS,+DASrB,CAAC;AAGF,eAAO,MAAM,OAAO,6BAWnB,CAAC;AAEF,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,WAEnC;AAID,eAAO,MAAM,SAAS,2CAGkD,CAAC"}
|
||||
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAUH,aAAK,OAAO,GAAG;IACb,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAAC;AAyBF,eAAO,MAAM,cAAc,0CAEY,CAAC;AAExC,eAAO,MAAM,OAAO,2EAoDnB,CAAC;AAIF,eAAO,MAAM,eAAe,8EA8B3B,CAAC;AAOF,eAAO,MAAM,gBAAgB,yEAqH5B,CAAC;AAUF,eAAO,MAAM,cAAc,mDAkC1B,CAAC;AAEF,eAAO,MAAM,YAAY,uCAMxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,iDAW/B,CAAC;AAEF,eAAO,MAAM,SAAS,+DASrB,CAAC;AAGF,eAAO,MAAM,OAAO,6BAWnB,CAAC;AAEF,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,WAEnC;AAID,eAAO,MAAM,SAAS,2CAGkD,CAAC"}
|
||||
72
node_modules/expect/build/utils.js
generated
vendored
72
node_modules/expect/build/utils.js
generated
vendored
@@ -98,25 +98,23 @@ const getPath = (object, propertyPath) => {
|
||||
|
||||
exports.getPath = getPath;
|
||||
|
||||
const getObjectSubset = (object, subset) => {
|
||||
const getObjectSubset = (object, subset, seenReferences = new WeakMap()) => {
|
||||
if (Array.isArray(object)) {
|
||||
if (Array.isArray(subset) && subset.length === object.length) {
|
||||
return subset.map((sub, i) => getObjectSubset(object[i], sub));
|
||||
}
|
||||
} else if (object instanceof Date) {
|
||||
return object;
|
||||
} else if (
|
||||
typeof object === 'object' &&
|
||||
object !== null &&
|
||||
typeof subset === 'object' &&
|
||||
subset !== null
|
||||
) {
|
||||
} else if (isObject(object) && isObject(subset)) {
|
||||
const trimmed = {};
|
||||
Object.keys(subset)
|
||||
.filter(key => hasOwnProperty(object, key))
|
||||
.forEach(
|
||||
key => (trimmed[key] = getObjectSubset(object[key], subset[key]))
|
||||
);
|
||||
seenReferences.set(object, trimmed);
|
||||
Object.keys(object)
|
||||
.filter(key => hasOwnProperty(subset, key))
|
||||
.forEach(key => {
|
||||
trimmed[key] = seenReferences.has(object[key])
|
||||
? seenReferences.get(object[key])
|
||||
: getObjectSubset(object[key], subset[key], seenReferences);
|
||||
});
|
||||
|
||||
if (Object.keys(trimmed).length > 0) {
|
||||
return trimmed;
|
||||
@@ -392,27 +390,49 @@ const iterableEquality = (a, b, aStack = [], bStack = []) => {
|
||||
|
||||
exports.iterableEquality = iterableEquality;
|
||||
|
||||
const isObject = a => a !== null && typeof a === 'object';
|
||||
|
||||
const isObjectWithKeys = a =>
|
||||
a !== null &&
|
||||
typeof a === 'object' &&
|
||||
isObject(a) &&
|
||||
!(a instanceof Error) &&
|
||||
!(a instanceof Array) &&
|
||||
!(a instanceof Date);
|
||||
|
||||
const subsetEquality = (object, subset) => {
|
||||
if (!isObjectWithKeys(subset)) {
|
||||
return undefined;
|
||||
}
|
||||
// subsetEquality needs to keep track of the references
|
||||
// it has already visited to avoid infinite loops in case
|
||||
// there are circular references in the subset passed to it.
|
||||
const subsetEqualityWithContext = (seenReferences = new WeakMap()) => (
|
||||
object,
|
||||
subset
|
||||
) => {
|
||||
if (!isObjectWithKeys(subset)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return Object.keys(subset).every(
|
||||
key =>
|
||||
object != null &&
|
||||
hasOwnProperty(object, key) &&
|
||||
(0, _jasmineUtils.equals)(object[key], subset[key], [
|
||||
iterableEquality,
|
||||
subsetEquality
|
||||
])
|
||||
);
|
||||
return Object.keys(subset).every(key => {
|
||||
if (isObjectWithKeys(subset[key])) {
|
||||
if (seenReferences.get(subset[key])) {
|
||||
return (0, _jasmineUtils.equals)(object[key], subset[key], [
|
||||
iterableEquality
|
||||
]);
|
||||
}
|
||||
|
||||
seenReferences.set(subset[key], true);
|
||||
}
|
||||
|
||||
return (
|
||||
object != null &&
|
||||
hasOwnProperty(object, key) &&
|
||||
(0, _jasmineUtils.equals)(object[key], subset[key], [
|
||||
iterableEquality,
|
||||
subsetEqualityWithContext(seenReferences)
|
||||
])
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
return subsetEqualityWithContext()(object, subset);
|
||||
};
|
||||
|
||||
exports.subsetEquality = subsetEquality;
|
||||
|
||||
44
node_modules/expect/package.json
generated
vendored
44
node_modules/expect/package.json
generated
vendored
@@ -1,47 +1,43 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"expect@24.8.0",
|
||||
"/Users/pjquirk/Source/GitHub/actions/labeler"
|
||||
]
|
||||
],
|
||||
"_development": true,
|
||||
"_from": "expect@24.8.0",
|
||||
"_id": "expect@24.8.0",
|
||||
"_from": "expect@^24.9.0",
|
||||
"_id": "expect@24.9.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-/zYvP8iMDrzaaxHVa724eJBCKqSHmO0FA7EDkBiRHxg6OipmMn1fN+C8T9L9K8yr7UONkOifu6+LLH+z76CnaA==",
|
||||
"_integrity": "sha512-wvVAx8XIol3Z5m9zvZXiyZOQ+sRJqNTIm6sGjdWlaZIeupQGO3WbYI+15D/AmEwZywL6wtJkbAbJtzkOfBuR0Q==",
|
||||
"_location": "/expect",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "expect@24.8.0",
|
||||
"raw": "expect@^24.9.0",
|
||||
"name": "expect",
|
||||
"escapedName": "expect",
|
||||
"rawSpec": "24.8.0",
|
||||
"rawSpec": "^24.9.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "24.8.0"
|
||||
"fetchSpec": "^24.9.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/jest-circus",
|
||||
"/jest-jasmine2",
|
||||
"/jest-snapshot"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/expect/-/expect-24.8.0.tgz",
|
||||
"_spec": "24.8.0",
|
||||
"_where": "/Users/pjquirk/Source/GitHub/actions/labeler",
|
||||
"_resolved": "https://registry.npmjs.org/expect/-/expect-24.9.0.tgz",
|
||||
"_shasum": "b75165b4817074fa4a157794f46fe9f1ba15b6ca",
|
||||
"_spec": "expect@^24.9.0",
|
||||
"_where": "/Users/dakale/dev/GitHub/actions/labeler/node_modules/jest-jasmine2",
|
||||
"browser": "build-es5/index.js",
|
||||
"bugs": {
|
||||
"url": "https://github.com/facebook/jest/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@jest/types": "^24.8.0",
|
||||
"@jest/types": "^24.9.0",
|
||||
"ansi-styles": "^3.2.0",
|
||||
"jest-get-type": "^24.8.0",
|
||||
"jest-matcher-utils": "^24.8.0",
|
||||
"jest-message-util": "^24.8.0",
|
||||
"jest-regex-util": "^24.3.0"
|
||||
"jest-get-type": "^24.9.0",
|
||||
"jest-matcher-utils": "^24.9.0",
|
||||
"jest-message-util": "^24.9.0",
|
||||
"jest-regex-util": "^24.9.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "This package exports the `expect` function used in [Jest](https://jestjs.io/). You can find its documentation [on Jest's website](https://jestjs.io/docs/en/expect.html).",
|
||||
"devDependencies": {
|
||||
"@types/ansi-styles": "^3.2.1",
|
||||
@@ -50,7 +46,7 @@
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
},
|
||||
"gitHead": "845728f24b3ef41e450595c384e9b5c9fdf248a4",
|
||||
"gitHead": "9ad0f4bc6b8bdd94989804226c28c9960d9da7d1",
|
||||
"homepage": "https://github.com/facebook/jest#readme",
|
||||
"license": "MIT",
|
||||
"main": "build/index.js",
|
||||
@@ -64,5 +60,5 @@
|
||||
"directory": "packages/expect"
|
||||
},
|
||||
"types": "build/index.d.ts",
|
||||
"version": "24.8.0"
|
||||
"version": "24.9.0"
|
||||
}
|
||||
|
||||
14
node_modules/expect/tsconfig.json
generated
vendored
14
node_modules/expect/tsconfig.json
generated
vendored
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "src",
|
||||
"outDir": "build"
|
||||
},
|
||||
"references": [
|
||||
{"path": "../jest-get-type"},
|
||||
{"path": "../jest-matcher-utils"},
|
||||
{"path": "../jest-message-util"},
|
||||
{"path": "../jest-regex-util"},
|
||||
{"path": "../jest-types"}
|
||||
]
|
||||
}
|
||||
2783
node_modules/expect/tsconfig.tsbuildinfo
generated
vendored
2783
node_modules/expect/tsconfig.tsbuildinfo
generated
vendored
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user