Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcanemagus committed Jul 25, 2017
1 parent 4f6a762 commit a610c60
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions spec/linter-codeclimate-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]]);
},
),
),
);
});

0 comments on commit a610c60

Please sign in to comment.