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

Commit d919d11

Browse files
committed
Make spec file conform to eslint updates
1 parent 837417e commit d919d11

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

spec/linter-elixirc-spec.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use babel';
22

33
import { join } from 'path';
4-
// eslint-disable-next-line import/no-extraneous-dependencies
4+
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-unresolved
55
import { remove } from 'fs-extra';
66

77
const validPathElixirc = join(__dirname, 'fixtures', 'elixirc', 'valid.ex');
@@ -37,27 +37,27 @@ describe('The elixirc provider for Linter', () => {
3737
waitsForPromise(() =>
3838
atom.workspace.open(errorMode1PathElixirc).then(editor =>
3939
lint(editor)).then((messages) => {
40-
expect(messages.length).toBe(1);
41-
expect(messages[0].severity).toBe('error');
42-
expect(messages[0].html).not.toBeDefined();
43-
expect(messages[0].excerpt).toBe('(ArgumentError) Dangerous is not available');
44-
expect(messages[0].location.file).toBe(errorMode1PathElixirc);
45-
expect(messages[0].location.position).toEqual([[1, 0], [1, 32]]);
46-
}),
40+
expect(messages.length).toBe(1);
41+
expect(messages[0].severity).toBe('error');
42+
expect(messages[0].html).not.toBeDefined();
43+
expect(messages[0].excerpt).toBe('(ArgumentError) Dangerous is not available');
44+
expect(messages[0].location.file).toBe(errorMode1PathElixirc);
45+
expect(messages[0].location.position).toEqual([[1, 0], [1, 32]]);
46+
}),
4747
);
4848
});
4949

5050
it('works with mode 2 errors', () => {
5151
waitsForPromise(() =>
5252
atom.workspace.open(errorMode2PathElixirc).then(editor =>
5353
lint(editor)).then((messages) => {
54-
expect(messages.length).toBe(1);
55-
expect(messages[0].severity).toBe('error');
56-
expect(messages[0].html).not.toBeDefined();
57-
expect(messages[0].excerpt).toBe('(CompileError) module Usefulness is not loaded and could not be found');
58-
expect(messages[0].location.file).toBe(errorMode2PathElixirc);
59-
expect(messages[0].location.position).toEqual([[3, 2], [3, 20]]);
60-
}),
54+
expect(messages.length).toBe(1);
55+
expect(messages[0].severity).toBe('error');
56+
expect(messages[0].html).not.toBeDefined();
57+
expect(messages[0].excerpt).toBe('(CompileError) module Usefulness is not loaded and could not be found');
58+
expect(messages[0].location.file).toBe(errorMode2PathElixirc);
59+
expect(messages[0].location.position).toEqual([[3, 2], [3, 20]]);
60+
}),
6161
);
6262
});
6363

@@ -117,13 +117,13 @@ describe('The elixirc provider for Linter', () => {
117117
waitsForPromise(() =>
118118
atom.workspace.open(errorMode2PathMix).then(editor =>
119119
lint(editor)).then((messages) => {
120-
expect(messages.length).toBe(1);
121-
expect(messages[0].severity).toBe('error');
122-
expect(messages[0].html).not.toBeDefined();
123-
expect(messages[0].excerpt).toBe('(CompileError) Identicon.Image.__struct__/1 is undefined, cannot expand struct Identicon.Image');
124-
expect(messages[0].location.file).toBe(errorMode2PathMix);
125-
expect(messages[0].location.position).toEqual([[11, 4], [11, 30]]);
126-
}),
120+
expect(messages.length).toBe(1);
121+
expect(messages[0].severity).toBe('error');
122+
expect(messages[0].html).not.toBeDefined();
123+
expect(messages[0].excerpt).toBe('(CompileError) Identicon.Image.__struct__/1 is undefined, cannot expand struct Identicon.Image');
124+
expect(messages[0].location.file).toBe(errorMode2PathMix);
125+
expect(messages[0].location.position).toEqual([[11, 4], [11, 30]]);
126+
}),
127127
);
128128
});
129129

0 commit comments

Comments
 (0)