From 0a3f18375a9a1749a02dce2656df58200e195cfc Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Sun, 22 Jan 2023 21:17:04 +0900 Subject: [PATCH] Adjust indent style with existing code https://github.com/dependabot/fetch-metadata/pull/224#issuecomment-1399120739 --- src/main.test.ts | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/src/main.test.ts b/src/main.test.ts index c3b51523..b5ca4c50 100644 --- a/src/main.test.ts +++ b/src/main.test.ts @@ -133,19 +133,20 @@ test('it sets the updated dependency as an output for subsequent actions when gi }) test('it sets the updated dependency as an output for subsequent actions when given a commit message for library', async () => { - const mockCommitMessage = `Update rubocop requirement from ~> 1.30.1 to ~> 1.31.0 -Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version. -- [Release notes](https://github.com/rubocop/rubocop/releases) -- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) -- [Commits](rubocop/rubocop@v1.30.1...v1.31.0) - ---- -updated-dependencies: -- dependency-name: rubocop - dependency-type: direct:development -... - -Signed-off-by: dependabot[bot] ` + const mockCommitMessage = + 'Update rubocop requirement from ~> 1.30.1 to ~> 1.31.0\n' + + 'Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.\n' + + '- [Release notes](https://github.com/rubocop/rubocop/releases)\n' + + '- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)\n' + + '- [Commits](rubocop/rubocop@v1.30.1...v1.31.0)\n' + + '\n' + + '---\n' + + 'updated-dependencies:\n' + + '- dependency-name: rubocop\n' + + ' dependency-type: direct:development\n' + + '...\n' + + '\n' + + 'Signed-off-by: dependabot[bot] ' const mockAlert = { alertState: 'FIXED', ghsaId: 'GSHA', cvss: 3.4 } jest.spyOn(core, 'getInput').mockImplementation(jest.fn((name) => { return name === 'github-token' ? 'mock-token' : '' }))