style: apply Biome formatting to the catalog release test
Gitea Actions Runner Test / test-job (push) Successful in 1s
CI / check (push) Successful in 32s
CI / tests-integration (push) Successful in 1m49s
CI / tests-unit (push) Successful in 1m50s
CI / tests-ui (push) Successful in 2m33s
CI / preflight (push) Skipped
CI / deploy (push) Failing after 20s
Gitea Actions Runner Test / test-job (push) Successful in 1s
CI / check (push) Successful in 32s
CI / tests-integration (push) Successful in 1m49s
CI / tests-unit (push) Successful in 1m50s
CI / tests-ui (push) Successful in 2m33s
CI / preflight (push) Skipped
CI / deploy (push) Failing after 20s
The timeout constant made the first it() line exceed the line width, so `biome check .` failed with a format error. Reformat and confirm the three publication tests still pass.
This commit is contained in:
1 parent
c2981bd970
commit
d2d01141f1
1 file changed
+18
-6
@@ -64,7 +64,9 @@ async function fixture() {
|
|||||||
const GIT_PUBLICATION_TIMEOUT = 120_000;
|
const GIT_PUBLICATION_TIMEOUT = 120_000;
|
||||||
|
|
||||||
describe("catalog release Git publication", () => {
|
describe("catalog release Git publication", () => {
|
||||||
it("publishes exact files and does not create another commit for identical data", async () => {
|
it(
|
||||||
|
"publishes exact files and does not create another commit for identical data",
|
||||||
|
async () => {
|
||||||
const { options, git } = await fixture();
|
const { options, git } = await fixture();
|
||||||
const first = await publishCatalogFiles(options);
|
const first = await publishCatalogFiles(options);
|
||||||
expect(await publishCatalogFiles(options)).toBe(first);
|
expect(await publishCatalogFiles(options)).toBe(first);
|
||||||
@@ -75,8 +77,12 @@ describe("catalog release Git publication", () => {
|
|||||||
"utf8",
|
"utf8",
|
||||||
),
|
),
|
||||||
).toBe("asset\r\n");
|
).toBe("asset\r\n");
|
||||||
}, GIT_PUBLICATION_TIMEOUT);
|
},
|
||||||
it("rejects a snapshot changed after manifest creation and restores a clean checkout", async () => {
|
GIT_PUBLICATION_TIMEOUT,
|
||||||
|
);
|
||||||
|
it(
|
||||||
|
"rejects a snapshot changed after manifest creation and restores a clean checkout",
|
||||||
|
async () => {
|
||||||
const { options, source, git } = await fixture();
|
const { options, source, git } = await fixture();
|
||||||
const head = git("rev-parse", "HEAD");
|
const head = git("rev-parse", "HEAD");
|
||||||
await writeFile(source, "tampered");
|
await writeFile(source, "tampered");
|
||||||
@@ -85,8 +91,12 @@ describe("catalog release Git publication", () => {
|
|||||||
);
|
);
|
||||||
expect(git("rev-parse", "HEAD")).toBe(head);
|
expect(git("rev-parse", "HEAD")).toBe(head);
|
||||||
expect(git("status", "--porcelain")).toBe("");
|
expect(git("status", "--porcelain")).toBe("");
|
||||||
}, GIT_PUBLICATION_TIMEOUT);
|
},
|
||||||
it("rejects Git newline normalization before creating a commit", async () => {
|
GIT_PUBLICATION_TIMEOUT,
|
||||||
|
);
|
||||||
|
it(
|
||||||
|
"rejects Git newline normalization before creating a commit",
|
||||||
|
async () => {
|
||||||
const { options, git } = await fixture();
|
const { options, git } = await fixture();
|
||||||
await writeFile(
|
await writeFile(
|
||||||
path.join(options.checkout, ".gitattributes"),
|
path.join(options.checkout, ".gitattributes"),
|
||||||
@@ -101,5 +111,7 @@ describe("catalog release Git publication", () => {
|
|||||||
);
|
);
|
||||||
expect(git("rev-parse", "HEAD")).toBe(head);
|
expect(git("rev-parse", "HEAD")).toBe(head);
|
||||||
expect(git("status", "--porcelain")).toBe("");
|
expect(git("status", "--porcelain")).toBe("");
|
||||||
}, GIT_PUBLICATION_TIMEOUT);
|
},
|
||||||
|
GIT_PUBLICATION_TIMEOUT,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
Reference in new issue
Block a user