Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 399b8aa

Browse files
committed
Updated snapshots. es.promise => es.promise.js - not sure why though.
1 parent 9c1256f commit 399b8aa

File tree

6 files changed

+93
-84
lines changed

6 files changed

+93
-84
lines changed

test/deep-basic/__snapshots__/index.test.js.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Formats the given number using \`Number#toLocaleString\`.
2020
const toLocaleString = (number, locale) => {
2121
let result = number;
2222
23-
if (typeof locale === 'string') {
23+
if (typeof locale === 'string' || Array.isArray(locale)) {
2424
result = number.toLocaleString(locale);
2525
} else if (locale === true) {
2626
result = number.toLocaleString();
@@ -41,7 +41,7 @@ var prettyBytes = (number, options) => {
4141
const UNITS = options.bits ? options.binary ? BIBIT_UNITS : BIT_UNITS : options.binary ? BIBYTE_UNITS : BYTE_UNITS;
4242
4343
if (options.signed && number === 0) {
44-
return ' 0 ' + UNITS[0];
44+
return \` 0 \${UNITS[0]}\`;
4545
}
4646
4747
const isNegative = number < 0;
@@ -89,7 +89,7 @@ Formats the given number using \`Number#toLocaleString\`.
8989
const toLocaleString = (number, locale) => {
9090
let result = number;
9191
92-
if (typeof locale === 'string') {
92+
if (typeof locale === 'string' || Array.isArray(locale)) {
9393
result = number.toLocaleString(locale);
9494
} else if (locale === true) {
9595
result = number.toLocaleString();
@@ -110,7 +110,7 @@ var prettyBytes = (number, options) => {
110110
const UNITS = options.bits ? options.binary ? BIBIT_UNITS : BIT_UNITS : options.binary ? BIBYTE_UNITS : BYTE_UNITS;
111111
112112
if (options.signed && number === 0) {
113-
return ' 0 ' + UNITS[0];
113+
return \` 0 \${UNITS[0]}\`;
114114
}
115115
116116
const isNegative = number < 0;
@@ -164,7 +164,7 @@ exports[`Publish Test File via Babel: umd 1`] = `
164164
const toLocaleString = (number, locale) => {
165165
let result = number;
166166
167-
if (typeof locale === 'string') {
167+
if (typeof locale === 'string' || Array.isArray(locale)) {
168168
result = number.toLocaleString(locale);
169169
} else if (locale === true) {
170170
result = number.toLocaleString();
@@ -185,7 +185,7 @@ exports[`Publish Test File via Babel: umd 1`] = `
185185
const UNITS = options.bits ? options.binary ? BIBIT_UNITS : BIT_UNITS : options.binary ? BIBYTE_UNITS : BYTE_UNITS;
186186
187187
if (options.signed && number === 0) {
188-
return ' 0 ' + UNITS[0];
188+
return \` 0 \${UNITS[0]}\`;
189189
}
190190
191191
const isNegative = number < 0;

0 commit comments

Comments
 (0)