Skip to content

Commit 66afbed

Browse files
committed
chore: format
1 parent 6b7c495 commit 66afbed

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

src/api.spec.ts

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,9 +358,9 @@ describe("API", () => {
358358
);
359359

360360
// Behaviour
361-
await expect(fetchWorkflowRunIds(0, branch, Date.now())).resolves.toStrictEqual(
362-
mockData.workflow_runs.map((run) => run.id),
363-
);
361+
await expect(
362+
fetchWorkflowRunIds(0, branch, Date.now()),
363+
).resolves.toStrictEqual(mockData.workflow_runs.map((run) => run.id));
364364

365365
// Logging
366366
assertOnlyCalled(coreDebugLogMock);
@@ -417,7 +417,9 @@ describe("API", () => {
417417
);
418418

419419
// Behaviour
420-
await expect(fetchWorkflowRunIds(0, branch, Date.now())).resolves.toStrictEqual([]);
420+
await expect(
421+
fetchWorkflowRunIds(0, branch, Date.now()),
422+
).resolves.toStrictEqual([]);
421423

422424
// Logging
423425
assertOnlyCalled(coreDebugLogMock);
@@ -453,7 +455,9 @@ describe("API", () => {
453455
);
454456

455457
// Behaviour
456-
await expect(fetchWorkflowRunIds(0, branch, Date.now())).resolves.not.toThrow();
458+
await expect(
459+
fetchWorkflowRunIds(0, branch, Date.now()),
460+
).resolves.not.toThrow();
457461
expect(parsedRef).toStrictEqual("master");
458462

459463
// Logging
@@ -490,7 +494,9 @@ describe("API", () => {
490494
);
491495

492496
// Behaviour
493-
await expect(fetchWorkflowRunIds(0, branch, Date.now())).resolves.not.toThrow();
497+
await expect(
498+
fetchWorkflowRunIds(0, branch, Date.now()),
499+
).resolves.not.toThrow();
494500
expect(parsedRef).toBeUndefined();
495501

496502
// Logging
@@ -527,7 +533,9 @@ describe("API", () => {
527533
);
528534

529535
// Behaviour
530-
await expect(fetchWorkflowRunIds(0, branch, Date.now())).resolves.not.toThrow();
536+
await expect(
537+
fetchWorkflowRunIds(0, branch, Date.now()),
538+
).resolves.not.toThrow();
531539
expect(parsedRef).toBeUndefined();
532540

533541
// Logging

src/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@ export async function fetchWorkflowRunIds(
166166
branch.branchName !== undefined &&
167167
branch.branchName !== "";
168168

169-
const afterStartTime = '>' + (new Date(startTime)).toISOString();
169+
const afterStartTime = ">" + new Date(startTime).toISOString();
170170

171171
// https://docs.github.com/en/rest/actions/workflow-runs#list-workflow-runs-for-a-repository
172172
const response = await octokit.rest.actions.listWorkflowRuns({
173173
owner: config.owner,
174174
repo: config.repo,
175175
workflow_id: workflowId,
176176
created: afterStartTime,
177-
event: 'workflow_dispatch',
177+
event: "workflow_dispatch",
178178
...(useBranchFilter
179179
? {
180180
branch: branch.branchName,

0 commit comments

Comments
 (0)