Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-c-martin committed Sep 30, 2021
1 parent 340fd24 commit 483b7a8
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/vscode-bicep/src/test/e2e/hover.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,11 @@ describe("hover", (): void => {
startCharacter: 9,
endLine: 108,
endCharacter: 13,
contents: [codeblock("resource vnet\nMicrosoft.Network/virtualNetworks@2020-06-01")],
contents: [
codeblock(
"resource vnet\nMicrosoft.Network/virtualNetworks@2020-06-01"
),
],
});
});

Expand Down Expand Up @@ -102,7 +106,8 @@ describe("hover", (): void => {
contents: [
codeblockWithDescription(
"function uniqueString(string): string",
"Creates a deterministic hash string based on the values provided as parameters.")
"Creates a deterministic hash string based on the values provided as parameters."
),
],
});
});
Expand Down Expand Up @@ -143,9 +148,7 @@ describe("hover", (): void => {
);
expect(hover.contents).toHaveLength(contents.length);
hover.contents.forEach((content, contentIndex) => {
expect(normalizeMarkedString(content)).toBe(
contents[contentIndex]
);
expect(normalizeMarkedString(content)).toBe(contents[contentIndex]);
});
});
}
Expand All @@ -158,7 +161,10 @@ describe("hover", (): void => {
return "```bicep\n" + rawString + "\n```\n";
}

function codeblockWithDescription(rawString: string, description: string): string {
function codeblockWithDescription(
rawString: string,
description: string
): string {
return `${codeblock(rawString)}${description}`;
}
});

0 comments on commit 483b7a8

Please sign in to comment.