Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
edno committed Aug 30, 2021
1 parent 7271cbc commit 7240b34
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions tests/unit/lib/printer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ describe("lib", () => {

const link = printerInstance.toLink(type, entityName);

expect(link).toMatchFile(path.join(EXPECT_PATH, `toLinkWith${capitalize(type)}.md`));
expect(link).toMatchFile(
path.join(EXPECT_PATH, `toLinkWith${capitalize(type)}.md`),
);
},
);

Expand Down Expand Up @@ -84,7 +86,9 @@ describe("lib", () => {

const link = printerInstance.toLink(type, entityName);

expect(link).toMatchFile(path.join(EXPECT_PATH, `toLinkWithUnkown.md`));
expect(link).toMatchFile(
path.join(EXPECT_PATH, `toLinkWithUnkown.md`),
);
});
});

Expand Down Expand Up @@ -593,7 +597,9 @@ describe("lib", () => {
const code = printerInstance.printCode(entityName);

expect(printCode).toHaveBeenCalledWith(entityName);
expect(code).toMatchFile(path.join(EXPECT_PATH, "printCodeWithQuery.md"));
expect(code).toMatchFile(
path.join(EXPECT_PATH, "printCodeWithQuery.md"),
);
});

test("returns a Markdown codeblock with non supported message for unsupported type", () => {
Expand Down Expand Up @@ -684,7 +690,10 @@ describe("lib", () => {
);

expect(printedType).toMatchFile(
path.join(EXPECT_PATH, `printTypeWith${capitalize(type)}Interface.md`),
path.join(
EXPECT_PATH,
`printTypeWith${capitalize(type)}Interface.md`,
),
);
},
);
Expand Down

0 comments on commit 7240b34

Please sign in to comment.