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]]); + }, + ), ), ); });