Skip to content

Commit 2105a1e

Browse files
committed
Update jest snapshots
1 parent 0e28c4e commit 2105a1e

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

test/unit/next-swc.test.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ describe('next/swc', () => {
1919
)
2020

2121
expect(output).toMatchInlineSnapshot(`
22-
"function _arrayLikeToArray(arr, len) {
22+
"function _array_like_to_array(arr, len) {
2323
if (len == null || len > arr.length) len = arr.length;
2424
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
2525
return arr2;
2626
}
27-
function _arrayWithHoles(arr) {
27+
function _array_with_holes(arr) {
2828
if (Array.isArray(arr)) return arr;
2929
}
30-
function _iterableToArrayLimit(arr, i) {
30+
function _iterable_to_array_limit(arr, i) {
3131
var _i = arr == null ? null : typeof Symbol !== \\"undefined\\" && arr[Symbol.iterator] || arr[\\"@@iterator\\"];
3232
if (_i == null) return;
3333
var _arr = [];
@@ -51,22 +51,22 @@ describe('next/swc', () => {
5151
}
5252
return _arr;
5353
}
54-
function _nonIterableRest() {
54+
function _non_iterable_rest() {
5555
throw new TypeError(\\"Invalid attempt to destructure non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\");
5656
}
57-
function _slicedToArray(arr, i) {
58-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
57+
function _sliced_to_array(arr, i) {
58+
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
5959
}
60-
function _unsupportedIterableToArray(o, minLen) {
60+
function _unsupported_iterable_to_array(o, minLen) {
6161
if (!o) return;
62-
if (typeof o === \\"string\\") return _arrayLikeToArray(o, minLen);
62+
if (typeof o === \\"string\\") return _array_like_to_array(o, minLen);
6363
var n = Object.prototype.toString.call(o).slice(8, -1);
6464
if (n === \\"Object\\" && o.constructor) n = o.constructor.name;
6565
if (n === \\"Map\\" || n === \\"Set\\") return Array.from(n);
66-
if (n === \\"Arguments\\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
66+
if (n === \\"Arguments\\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
6767
}
6868
import { useState } from \\"react\\";
69-
var _useState = _slicedToArray(useState(0), 2), count = _useState[0], setCount = _useState[1];
69+
var _useState = _sliced_to_array(useState(0), 2), count = _useState[0], setCount = _useState[1];
7070
"
7171
`)
7272
})
@@ -80,33 +80,33 @@ describe('next/swc', () => {
8080
)
8181

8282
expect(output).toMatchInlineSnapshot(`
83-
"function _arrayLikeToArray(arr, len) {
83+
"function _array_like_to_array(arr, len) {
8484
if (len == null || len > arr.length) len = arr.length;
8585
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
8686
return arr2;
8787
}
88-
function _arrayWithHoles(arr) {
88+
function _array_with_holes(arr) {
8989
if (Array.isArray(arr)) return arr;
9090
}
91-
function _iterableToArray(iter) {
91+
function _iterable_to_array(iter) {
9292
if (typeof Symbol !== \\"undefined\\" && iter[Symbol.iterator] != null || iter[\\"@@iterator\\"] != null) return Array.from(iter);
9393
}
94-
function _nonIterableRest() {
94+
function _non_iterable_rest() {
9595
throw new TypeError(\\"Invalid attempt to destructure non-iterable instance.\\\\\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\");
9696
}
97-
function _toArray(arr) {
98-
return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
97+
function _to_array(arr) {
98+
return _array_with_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_rest();
9999
}
100-
function _unsupportedIterableToArray(o, minLen) {
100+
function _unsupported_iterable_to_array(o, minLen) {
101101
if (!o) return;
102-
if (typeof o === \\"string\\") return _arrayLikeToArray(o, minLen);
102+
if (typeof o === \\"string\\") return _array_like_to_array(o, minLen);
103103
var n = Object.prototype.toString.call(o).slice(8, -1);
104104
if (n === \\"Object\\" && o.constructor) n = o.constructor.name;
105105
if (n === \\"Map\\" || n === \\"Set\\") return Array.from(n);
106-
if (n === \\"Arguments\\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
106+
if (n === \\"Arguments\\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
107107
}
108108
import { useState } from \\"react\\";
109-
var _useState = _toArray(useState(0)), copy = _useState.slice(0);
109+
var _useState = _to_array(useState(0)), copy = _useState.slice(0);
110110
"
111111
`)
112112
})

0 commit comments

Comments
 (0)