From a610c60805ba494d51aa1c0b363bbcf52d2c3b4d Mon Sep 17 00:00:00 2001 From: Landon Abney Date: Tue, 25 Jul 2017 09:39:12 -0700 Subject: [PATCH] Fix linting issues --- spec/linter-codeclimate-spec.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/spec/linter-codeclimate-spec.js b/spec/linter-codeclimate-spec.js index 481ee21..e852d4f 100644 --- a/spec/linter-codeclimate-spec.js +++ b/spec/linter-codeclimate-spec.js @@ -23,22 +23,22 @@ describe('The codeclimate provider for Linter', () => { waitsForPromise( { timeout: TIMEOUT }, () => - atom.workspace.open(coolCodePath).then(editor => lint(editor)).then( - (messages) => { - expect(messages[0].severity).toBe('warning'); - expect(messages[0].excerpt).toBe('RUBOCOP: Unused method argument - ' + + atom.workspace.open(coolCodePath).then(editor => lint(editor)).then( + (messages) => { + expect(messages[0].severity).toBe('warning'); + expect(messages[0].excerpt).toBe('RUBOCOP: Unused method argument - ' + "`bar`. If it's necessary, use `_` or `_bar` as an argument name to " + "indicate that it won't be used. You can also write as `foo(*)` if " + "you want the method to accept any arguments but don't care about " + 'them. [Rubocop/Lint/UnusedMethodArgument]'); - expect(messages[0].description).toBeDefined(); - expect(messages[0].reference).not.toBeDefined(); - expect(messages[0].icon).not.toBeDefined(); - expect(messages[0].solutions).not.toBeDefined(); - expect(messages[0].location.file).toBe(coolCodePath); - expect(messages[0].location.position).toEqual([[1, 11], [1, 14]]); - }, - ), + expect(messages[0].description).toBeDefined(); + expect(messages[0].reference).not.toBeDefined(); + expect(messages[0].icon).not.toBeDefined(); + expect(messages[0].solutions).not.toBeDefined(); + expect(messages[0].location.file).toBe(coolCodePath); + expect(messages[0].location.position).toEqual([[1, 11], [1, 14]]); + }, + ), ), ); });