Skip to content

Commit d5f693d

Browse files
committed
[refactor] Format launch readiness changes
Signed-off-by: Viwat Vchirawongkwin <viwat.v@chula.ac.th> (cherry picked from commit 74a2bbd9d6f7796d3da1502accfb7d267f19e87b)
1 parent 50603cb commit d5f693d

4 files changed

Lines changed: 13 additions & 22 deletions

File tree

‎tools/web/src/app/support/page.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ export default function SupportPage() {
4141
<h3>Install the matching firmware once</h3>
4242
<p>
4343
The public installer supports only esp32-4mb and
44-
esp32-s3-n16r8. ESP32-C3 is not currently available. Use
45-
the reviewed image supplied for your exact target; this
46-
initial step uses a cable.
44+
esp32-s3-n16r8. ESP32-C3 is not currently available. Use the
45+
reviewed image supplied for your exact target; this initial
46+
step uses a cable.
4747
</p>
4848
</div>
4949
</li>

‎tools/web/src/test/firmware-staging.test.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,7 @@ describe("external firmware bundle staging", () => {
644644
accessControlled: false,
645645
hilStatus: "passed",
646646
});
647-
const bundleDirectory = await temporaryDirectory(
648-
"preserved-public-source",
649-
);
647+
const bundleDirectory = await temporaryDirectory("preserved-public-source");
650648
const stagedRoot = await temporaryDirectory("preserved-public-staged");
651649
await writeExternalBundle(bundleDirectory, fixture);
652650
const descriptor = await stageFixture({

‎tools/web/src/test/site-contract.test.tsx‎

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ describe("public-site contract", () => {
7777
});
7878

7979
it("publishes a real-app large social card and local TestFlight card", async () => {
80-
const socialUrl =
81-
"https://pyble.dev/social/pyble-beta-og-1200x630.png";
80+
const socialUrl = "https://pyble.dev/social/pyble-beta-og-1200x630.png";
8281
expect(rootMetadata.openGraph?.images).toEqual([
8382
{
8483
url: socialUrl,
@@ -102,22 +101,18 @@ describe("public-site contract", () => {
102101
const publicDirectory = join(process.cwd(), "public");
103102
const [socialPng, qrCardPng, qrCardSvg] = await Promise.all([
104103
readFile(join(publicDirectory, "social", "pyble-beta-og-1200x630.png")),
105-
readFile(
106-
join(publicDirectory, "social", "pyble-testflight-qr-1080.png"),
107-
),
104+
readFile(join(publicDirectory, "social", "pyble-testflight-qr-1080.png")),
108105
readFile(
109106
join(publicDirectory, "social", "pyble-testflight-qr-1080.svg"),
110107
"utf8",
111108
),
112109
]);
113-
expect([
114-
socialPng.readUInt32BE(16),
115-
socialPng.readUInt32BE(20),
116-
]).toEqual([1200, 630]);
117-
expect([
118-
qrCardPng.readUInt32BE(16),
119-
qrCardPng.readUInt32BE(20),
120-
]).toEqual([1080, 1080]);
110+
expect([socialPng.readUInt32BE(16), socialPng.readUInt32BE(20)]).toEqual([
111+
1200, 630,
112+
]);
113+
expect([qrCardPng.readUInt32BE(16), qrCardPng.readUInt32BE(20)]).toEqual([
114+
1080, 1080,
115+
]);
121116
expect(qrCardSvg).toContain("testflight.apple.com/join/yU4e8s6d");
122117
expect(qrCardSvg).not.toMatch(/https?:\/\/[^<]*\.(?:png|svg|jpg)/i);
123118
});

‎tools/web/src/test/vps-deployment-contract.test.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ describe("Cloudflare-fronted VPS deployment", () => {
9898
/location \^~ \/firmware\/v0\.4\.1\/\s*\{([\s\S]*?)\n\s*\}/.exec(
9999
config,
100100
)?.[1];
101-
const quarantineIndex = config.indexOf(
102-
"location ^~ /firmware/v0.4.1/",
103-
);
101+
const quarantineIndex = config.indexOf("location ^~ /firmware/v0.4.1/");
104102
const generalFirmwareIndex = config.indexOf("location ^~ /firmware/ {");
105103

106104
expect(quarantine).toBeDefined();

0 commit comments

Comments
 (0)