matsuri-hooks 4.2.15-alpha-76b040e.0 → 4.2.15-alpha-c7666fb.0
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.
|
@@ -1707,11 +1707,20 @@ function stringify(object2, maxDepth = 10, { maxLength, ...options } = {}) {
|
|
|
1707
1707
|
}) : result;
|
|
1708
1708
|
}
|
|
1709
1709
|
var formatRegExp = /%[sdjifoOc%]/g;
|
|
1710
|
-
function
|
|
1710
|
+
function baseFormat(args, options = {}) {
|
|
1711
|
+
const formatArg = (item, inspecOptions) => {
|
|
1712
|
+
if (options.prettifyObject) {
|
|
1713
|
+
return stringify(item, void 0, {
|
|
1714
|
+
printBasicPrototype: false,
|
|
1715
|
+
escapeString: false
|
|
1716
|
+
});
|
|
1717
|
+
}
|
|
1718
|
+
return inspect(item, inspecOptions);
|
|
1719
|
+
};
|
|
1711
1720
|
if (typeof args[0] !== "string") {
|
|
1712
1721
|
const objects = [];
|
|
1713
1722
|
for (let i2 = 0; i2 < args.length; i2++) {
|
|
1714
|
-
objects.push(
|
|
1723
|
+
objects.push(formatArg(args[i2], {
|
|
1715
1724
|
depth: 0,
|
|
1716
1725
|
colors: false
|
|
1717
1726
|
}));
|
|
@@ -1741,7 +1750,7 @@ function format2(...args) {
|
|
|
1741
1750
|
if (typeof value.toString === "function" && value.toString !== Object.prototype.toString) {
|
|
1742
1751
|
return value.toString();
|
|
1743
1752
|
}
|
|
1744
|
-
return
|
|
1753
|
+
return formatArg(value, {
|
|
1745
1754
|
depth: 0,
|
|
1746
1755
|
colors: false
|
|
1747
1756
|
});
|
|
@@ -1765,12 +1774,12 @@ function format2(...args) {
|
|
|
1765
1774
|
case "%f":
|
|
1766
1775
|
return Number.parseFloat(String(args[i++])).toString();
|
|
1767
1776
|
case "%o":
|
|
1768
|
-
return
|
|
1777
|
+
return formatArg(args[i++], {
|
|
1769
1778
|
showHidden: true,
|
|
1770
1779
|
showProxy: true
|
|
1771
1780
|
});
|
|
1772
1781
|
case "%O":
|
|
1773
|
-
return
|
|
1782
|
+
return formatArg(args[i++]);
|
|
1774
1783
|
case "%c": {
|
|
1775
1784
|
i++;
|
|
1776
1785
|
return "";
|
|
@@ -1793,11 +1802,14 @@ function format2(...args) {
|
|
|
1793
1802
|
if (x === null || typeof x !== "object") {
|
|
1794
1803
|
str += ` ${x}`;
|
|
1795
1804
|
} else {
|
|
1796
|
-
str += ` ${
|
|
1805
|
+
str += ` ${formatArg(x)}`;
|
|
1797
1806
|
}
|
|
1798
1807
|
}
|
|
1799
1808
|
return str;
|
|
1800
1809
|
}
|
|
1810
|
+
function format2(...args) {
|
|
1811
|
+
return baseFormat(args);
|
|
1812
|
+
}
|
|
1801
1813
|
function inspect(obj, options = {}) {
|
|
1802
1814
|
if (options.truncate === 0) {
|
|
1803
1815
|
options.truncate = Number.POSITIVE_INFINITY;
|
|
@@ -4703,6 +4715,9 @@ function withAwaitAsyncAssertions(fn2, task) {
|
|
|
4703
4715
|
function createSuite() {
|
|
4704
4716
|
function suiteFn(name, factoryOrOptions, optionsOrFactory) {
|
|
4705
4717
|
var _currentSuite$options;
|
|
4718
|
+
if (getCurrentTest()) {
|
|
4719
|
+
throw new Error("Calling the suite function inside test function is not allowed. It can be only called at the top level or inside another suite function.");
|
|
4720
|
+
}
|
|
4706
4721
|
let mode = this.only ? "only" : this.skip ? "skip" : this.todo ? "todo" : "run";
|
|
4707
4722
|
const currentSuite = collectorContext.currentSuite || defaultSuite;
|
|
4708
4723
|
let { options, handler: factory } = parseArguments(factoryOrOptions, optionsOrFactory);
|
|
@@ -15758,4 +15773,4 @@ chai/index.js:
|
|
|
15758
15773
|
* @license MIT License
|
|
15759
15774
|
*)
|
|
15760
15775
|
*/
|
|
15761
|
-
//# sourceMappingURL=chunk-
|
|
15776
|
+
//# sourceMappingURL=chunk-6W6ZTGY3.js.map
|