Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenWeatherford committed Mar 24, 2022
1 parent 2ae1ee2 commit c09e05d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/vscode-bicep/src/test/e2e/createBicepConfig.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ describe("bicep.createConfigFile", (): void => {

expect(path.basename(newConfigPath)).toBe("bicepconfig.json");
if (!fileExists(newConfigPath)) {
throw new Error(`Expected file ${newConfigPath} to exist but it doesn't`);
throw new Error(
`Expected file ${newConfigPath} to exist but it doesn't`
);
}

expect(fileContains(newConfigPath, "rules")).toBeTruthy();
Expand Down Expand Up @@ -81,16 +83,16 @@ describe("bicep.createConfigFile", (): void => {
function createUniqueTempFolder(filenamePrefix: string): string {
const tempFolder = os.tmpdir();
if (!fse.existsSync(tempFolder)) {
console.log(`Creating ${tempFolder}`)
console.log(`Creating ${tempFolder}`);
fse.mkdirSync(tempFolder);
console.log(`Created ${tempFolder}`)
console.log(`Created ${tempFolder}`);
}

const tempSubfolder = fse.mkdtempSync(path.join(tempFolder, filenamePrefix));
if (!fse.existsSync(tempSubfolder)) {
console.log(`Creating ${tempSubfolder}`)
console.log(`Creating ${tempSubfolder}`);
fse.mkdirSync(tempSubfolder);
console.log(`Created ${tempSubfolder}`)
console.log(`Created ${tempSubfolder}`);
}

return tempSubfolder;
Expand Down

0 comments on commit c09e05d

Please sign in to comment.