Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
baev committed May 21, 2024
1 parent b6165c3 commit ff5c79f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { describe, expect, it } from "vitest";
import { AllureNodeReporterRuntime } from "../../../src/sdk/node";
import { mockWriter } from "../../utils/writer";
import { mockWriter } from "../../utils/writer.js";

describe("AllureNodeReporterRuntime", () => {
describe("writeAttachmentFromPath", () => {
it("should use extension from fileExtension option if specified", async () => {
it("should use extension from fileExtension option if specified", () => {
const writer = mockWriter();
const runtime = new AllureNodeReporterRuntime({ writer });

Expand All @@ -25,7 +25,7 @@ describe("AllureNodeReporterRuntime", () => {
expect(writeAttachmentFromPathCall[1]).to.be.eq(attachment.source);
});

it("should use extension from original file if fileExtension option is not specified", async () => {
it("should use extension from original file if fileExtension option is not specified", () => {
const writer = mockWriter();
const runtime = new AllureNodeReporterRuntime({ writer });

Expand All @@ -45,7 +45,7 @@ describe("AllureNodeReporterRuntime", () => {
expect(writeAttachmentFromPathCall[1]).to.be.eq(attachment.source);
});

it("should detect extension by content type if no option or path specified", async () => {
it("should detect extension by content type if no option or path specified", () => {
const writer = mockWriter();
const runtime = new AllureNodeReporterRuntime({ writer });

Expand Down

0 comments on commit ff5c79f

Please sign in to comment.