Skip to content

Commit 0d58d9d

Browse files
Prettier
1 parent 8cbd6f3 commit 0d58d9d

3 files changed

Lines changed: 12 additions & 14 deletions

File tree

lib/flashing/flashing-partial.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ import {
77
} from "../partial-flashing-service";
88
import { findMakeCodeRegionInMemoryMap } from "./flashing-makecode";
99
import { delay, DisconnectError } from "../async-util";
10-
import {
11-
DeviceError,
12-
ProgressCallback,
13-
ProgressStage,
14-
} from "../device";
10+
import { DeviceError, ProgressCallback, ProgressStage } from "../device";
1511

1612
export enum PartialFlashResult {
1713
Success = "Success",

lib/flashing/zip.test.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ describe.skipIf(isWindows)("createZip", () => {
2525
it("creates a valid ZIP with a single text file", () => {
2626
const content = "Hello, World!";
2727
const encoder = new TextEncoder();
28-
const zip = createZip([{ name: "hello.txt", data: encoder.encode(content) }]);
28+
const zip = createZip([
29+
{ name: "hello.txt", data: encoder.encode(content) },
30+
]);
2931

3032
const zipPath = join(tempDir, "test.zip");
3133
const outDir = join(tempDir, "out");
@@ -45,7 +47,7 @@ describe.skipIf(isWindows)("createZip", () => {
4547
];
4648

4749
const zip = createZip(
48-
files.map((f) => ({ name: f.name, data: encoder.encode(f.content) }))
50+
files.map((f) => ({ name: f.name, data: encoder.encode(f.content) })),
4951
);
5052

5153
const zipPath = join(tempDir, "test.zip");
@@ -108,8 +110,12 @@ describe.skipIf(isWindows)("createZip", () => {
108110
writeFileSync(zipPath, zip);
109111
unzip(zipPath, outDir);
110112

111-
expect(new Uint8Array(readFileSync(join(outDir, "application.dat")))).toEqual(appDat);
112-
expect(new Uint8Array(readFileSync(join(outDir, "application.bin")))).toEqual(appBin);
113+
expect(
114+
new Uint8Array(readFileSync(join(outDir, "application.dat"))),
115+
).toEqual(appDat);
116+
expect(
117+
new Uint8Array(readFileSync(join(outDir, "application.bin"))),
118+
).toEqual(appBin);
113119
expect(readFileSync(join(outDir, "manifest.json"), "utf-8")).toBe(manifest);
114120
});
115121
});

lib/usb-partial-flashing.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,7 @@ import {
5858
pageAlignBlocks,
5959
read32FromUInt8Array,
6060
} from "./usb-partial-flashing-utils.js";
61-
import {
62-
BoardVersion,
63-
ProgressCallback,
64-
ProgressStage,
65-
} from "./device.js";
61+
import { BoardVersion, ProgressCallback, ProgressStage } from "./device.js";
6662
import MemoryMap from "nrf-intel-hex";
6763

6864
// Source code for binaries in can be found at https://github.com/microsoft/pxt-microbit/blob/dec5b8ce72d5c2b4b0b20aafefce7474a6f0c7b2/external/sha/source/main.c

0 commit comments

Comments
 (0)