diff --git a/dist/index.js b/dist/index.js index d5bd68e..73db8c8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -174,7 +174,7 @@ module.exports = { const cfnLint = isWindows() ? "cfn-lint.exe" : "cfn-lint"; fs.symlinkSync( path.join(binPath, cfnLint), - path.join(symlinkPath, cfnLint) + path.join(symlinkPath, cfnLint), ); return symlinkPath; @@ -198,7 +198,7 @@ module.exports = { return response; } catch (e) { core.error( - `Error running command: ${command}. Returned error is: ${e.message}` + `Error running command: ${command}. Returned error is: ${e.message}`, ); throw e; } diff --git a/lib/utils/installCLI.js b/lib/utils/installCLI.js index 58eeaa5..6ebc9fb 100644 --- a/lib/utils/installCLI.js +++ b/lib/utils/installCLI.js @@ -46,7 +46,7 @@ module.exports = { const cfnLint = isWindows() ? "cfn-lint.exe" : "cfn-lint"; fs.symlinkSync( path.join(binPath, cfnLint), - path.join(symlinkPath, cfnLint) + path.join(symlinkPath, cfnLint), ); return symlinkPath; diff --git a/lib/utils/runCommand.js b/lib/utils/runCommand.js index 0df142a..e4220e0 100644 --- a/lib/utils/runCommand.js +++ b/lib/utils/runCommand.js @@ -9,7 +9,7 @@ module.exports = { return response; } catch (e) { core.error( - `Error running command: ${command}. Returned error is: ${e.message}` + `Error running command: ${command}. Returned error is: ${e.message}`, ); throw e; } diff --git a/tests/runCommand.test.js b/tests/runCommand.test.js index 2212fda..124f6ba 100644 --- a/tests/runCommand.test.js +++ b/tests/runCommand.test.js @@ -22,7 +22,7 @@ describe("runCommand Test", () => { it("Successfully handles failure CFN-Lint Command", async () => { const command = { command: "cfn-lint -t ./template.yml" }; const expectedReturnValue = new Error( - "You have Errors in your Cloud Formation" + "You have Errors in your Cloud Formation", ); jest.spyOn(exec, "exec").mockImplementation(() => { @@ -35,7 +35,7 @@ describe("runCommand Test", () => { await runCommand(command); } catch (e) { expect(e.message).toStrictEqual( - "You have Errors in your Cloud Formation" + "You have Errors in your Cloud Formation", ); expect(log).toHaveBeenCalledTimes(1); } diff --git a/tests/setup.test.js b/tests/setup.test.js index ae72d1d..4c3f7cd 100644 --- a/tests/setup.test.js +++ b/tests/setup.test.js @@ -58,7 +58,7 @@ test.each([ expect(io.which).toHaveBeenCalledWith(test.expected.python, true); expect(exec.exec).toHaveBeenCalledWith( expect.anything(), - expect.arrayContaining(["install", `cfn-lint==${test.expected.version}`]) + expect.arrayContaining(["install", `cfn-lint==${test.expected.version}`]), ); expect(core.addPath).toHaveBeenCalledTimes(1); });