diff --git a/renovate.json b/renovate.json index fa57fba..1116f5a 100644 --- a/renovate.json +++ b/renovate.json @@ -1,5 +1,4 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "baseBranches": ["develop"], - "labels": ["type/dependencies"] + "baseBranches": ["develop"] } diff --git a/src/helpers/cliHelper.ts b/src/helpers/cliHelper.ts index f4f5c63..2776f2e 100644 --- a/src/helpers/cliHelper.ts +++ b/src/helpers/cliHelper.ts @@ -9,7 +9,7 @@ export default class CliHelper { const output = OutputHelper.GenerateOutput(response, options); if (options.o) { - writeFileSync(options.o, `${output}\n`); + writeFileSync(options.o, output); } else { console.log(output); } diff --git a/tests/helpers/cliHelper.test.ts b/tests/helpers/cliHelper.test.ts index 0deb946..3ea6687 100644 --- a/tests/helpers/cliHelper.test.ts +++ b/tests/helpers/cliHelper.test.ts @@ -35,7 +35,7 @@ describe("Endpoint", () => { expect(OutputHelper.GenerateOutput).toHaveBeenCalledWith(response, options); expect(fs.writeFileSync).toHaveBeenCalledTimes(1); - expect(fs.writeFileSync).toHaveBeenCalledWith("file.txt", "test output\n"); + expect(fs.writeFileSync).toHaveBeenCalledWith("file.txt", "test output"); expect(console.log).not.toHaveBeenCalled(); diff --git a/tests/index.test.ts b/tests/index.test.ts index 874f129..ffa9015 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -122,7 +122,7 @@ describe('randomBunny', () => { expect(result.Error!.Code).toBe(ErrorCode.NoImageResultsFound); expect(result.Error!.Message).toBe(ErrorMessages.NoImageResultsFound); - expect(fetchMock).toHaveBeenCalledWith('https://reddit.com/r/rabbits/new.json?limit=100'); + expect(fetchMock).toBeCalledWith('https://reddit.com/r/rabbits/new.json?limit=100'); }); test('GIVEN randomSelect does NOT find a valid response, EXPECT failure result', async () => {