Skip to content

Commit

Permalink
fix linters issues
Browse files Browse the repository at this point in the history
  • Loading branch information
epszaw committed May 22, 2024
1 parent 95d57cc commit ec51145
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions packages/allure-js-commons/test/sdk/node/ReporterRuntime.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const fixtures = {
{
url: "3",
type: "custom",
}
},
] as Link[],
};

Expand Down Expand Up @@ -103,9 +103,11 @@ describe("AllureNodeReporterRuntime", () => {
]);
runtime.writeTest();

expect(writer.writeResult).toHaveBeenCalledWith(expect.objectContaining({
links: fixtures.links,
}));
expect(writer.writeResult).toHaveBeenCalledWith(
expect.objectContaining({
links: fixtures.links,
}),
);
});

it("transforms links according the runtime configuration", () => {
Expand All @@ -123,7 +125,7 @@ describe("AllureNodeReporterRuntime", () => {
urlTemplate: "https://allurereport.org/tasks/%s",
nameTemplate: "Task %s",
},
]
],
});

runtime.startTest({});
Expand All @@ -137,21 +139,23 @@ describe("AllureNodeReporterRuntime", () => {
]);
runtime.writeTest();

expect(writer.writeResult).toHaveBeenCalledWith(expect.objectContaining({
links: [
{
type: "issue",
url: "https://allurereport.org/issues/1",
name: "issue-1",
},
{
type: "tms",
url: "https://allurereport.org/tasks/2",
name: "Task 2",
},
fixtures.links[2],
],
}));
expect(writer.writeResult).toHaveBeenCalledWith(
expect.objectContaining({
links: [
{
type: "issue",
url: "https://allurereport.org/issues/1",
name: "issue-1",
},
{
type: "tms",
url: "https://allurereport.org/tasks/2",
name: "Task 2",
},
fixtures.links[2],
],
}),
);
});
});
});

0 comments on commit ec51145

Please sign in to comment.