Skip to content

Commit a07dd60

Browse files
committed
Tweak formatting.
1 parent 34a897d commit a07dd60

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

formDataAppendFile.test.mjs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ describe("Function `formDataAppendFile`.", { concurrency: true }, () => {
2222
formDataAppendFile(
2323
formData,
2424
fieldName,
25-
new Blob(["a"], { type: fileType }),
25+
new Blob(["a"], {
26+
type: fileType,
27+
}),
2628
);
2729

2830
const formDataEntries = Array.from(formData.entries());
@@ -43,7 +45,9 @@ describe("Function `formDataAppendFile`.", { concurrency: true }, () => {
4345
formDataAppendFile(
4446
formData,
4547
fieldName,
46-
new File(["a"], fileName, { type: fileType }),
48+
new File(["a"], fileName, {
49+
type: fileType,
50+
}),
4751
);
4852

4953
const formDataEntries = Array.from(formData.entries());

test/assertBundleSize.mjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ export default async function assertBundleSize(moduleUrl, limit) {
3838

3939
if (gzippedSize > limit)
4040
fail(
41-
`${gzippedSize} B minified and gzipped bundle exceeds the ${limit} B limit by ${
42-
gzippedSize - limit
43-
} B; increase the limit or reduce the bundle size.`,
41+
`${gzippedSize} B minified and gzipped bundle exceeds the ${limit} B limit by ${gzippedSize - limit} B; increase the limit or reduce the bundle size.`,
4442
);
4543

4644
const surplus = limit - gzippedSize;
@@ -52,5 +50,8 @@ export default async function assertBundleSize(moduleUrl, limit) {
5250
);
5351

5452
// For debugging in tests.
55-
return { bundle: bundle.text, gzippedSize };
53+
return {
54+
bundle: bundle.text,
55+
gzippedSize,
56+
};
5657
}

0 commit comments

Comments
 (0)