Skip to content

Commit 30eb5af

Browse files
authored
Merge pull request #300 from ScottBrenner/fix-tests
Fix failing tests
2 parents 0480da7 + 81dc17b commit 30eb5af

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ module.exports = {
174174
const cfnLint = isWindows() ? "cfn-lint.exe" : "cfn-lint";
175175
fs.symlinkSync(
176176
path.join(binPath, cfnLint),
177-
path.join(symlinkPath, cfnLint)
177+
path.join(symlinkPath, cfnLint),
178178
);
179179

180180
return symlinkPath;
@@ -198,7 +198,7 @@ module.exports = {
198198
return response;
199199
} catch (e) {
200200
core.error(
201-
`Error running command: ${command}. Returned error is: ${e.message}`
201+
`Error running command: ${command}. Returned error is: ${e.message}`,
202202
);
203203
throw e;
204204
}

lib/utils/installCLI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
const cfnLint = isWindows() ? "cfn-lint.exe" : "cfn-lint";
4747
fs.symlinkSync(
4848
path.join(binPath, cfnLint),
49-
path.join(symlinkPath, cfnLint)
49+
path.join(symlinkPath, cfnLint),
5050
);
5151

5252
return symlinkPath;

lib/utils/runCommand.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
return response;
1010
} catch (e) {
1111
core.error(
12-
`Error running command: ${command}. Returned error is: ${e.message}`
12+
`Error running command: ${command}. Returned error is: ${e.message}`,
1313
);
1414
throw e;
1515
}

tests/runCommand.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe("runCommand Test", () => {
2222
it("Successfully handles failure CFN-Lint Command", async () => {
2323
const command = { command: "cfn-lint -t ./template.yml" };
2424
const expectedReturnValue = new Error(
25-
"You have Errors in your Cloud Formation"
25+
"You have Errors in your Cloud Formation",
2626
);
2727

2828
jest.spyOn(exec, "exec").mockImplementation(() => {
@@ -35,7 +35,7 @@ describe("runCommand Test", () => {
3535
await runCommand(command);
3636
} catch (e) {
3737
expect(e.message).toStrictEqual(
38-
"You have Errors in your Cloud Formation"
38+
"You have Errors in your Cloud Formation",
3939
);
4040
expect(log).toHaveBeenCalledTimes(1);
4141
}

tests/setup.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ test.each([
5858
expect(io.which).toHaveBeenCalledWith(test.expected.python, true);
5959
expect(exec.exec).toHaveBeenCalledWith(
6060
expect.anything(),
61-
expect.arrayContaining(["install", `cfn-lint==${test.expected.version}`])
61+
expect.arrayContaining(["install", `cfn-lint==${test.expected.version}`]),
6262
);
6363
expect(core.addPath).toHaveBeenCalledTimes(1);
6464
});

0 commit comments

Comments
 (0)