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

Commit c72001a

Browse files
committed
Merge pull request #86 from AtomLinter/revert-code-styles
Revert code styles
2 parents cea88ac + c9ad96b commit c72001a

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"devDependencies": {
3333
"eslint": "^2.2.0",
3434
"babel-eslint": "^5.0.0",
35-
"eslint-config-airbnb": "^6.0.0"
35+
"eslint-config-airbnb": "^6.0.1"
3636
},
3737
"eslintConfig": {
3838
"rules": {

spec/linter-htmlhint-spec.js

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,34 @@ describe('The htmlhint provider for Linter', () => {
88
beforeEach(() => {
99
atom.workspace.destroyActivePaneItem();
1010
waitsForPromise(() =>
11-
atom
12-
.packages
13-
.activatePackage('linter-htmlhint')
14-
.then(() => atom.packages.activatePackage('language-html'))
11+
Promise.all([
12+
atom.packages.activatePackage('linter-htmlhint'),
13+
atom.packages.activatePackage('language-html')
14+
])
1515
);
1616
});
1717

1818
it('detects invalid coding style in bad.html and report as error', () => {
1919
waitsForPromise(() => {
2020
const bad = path.join(__dirname, 'fixtures', 'bad.html');
21-
return atom
22-
.workspace
23-
.open(bad)
24-
.then(editor => lint(editor))
25-
.then(messages => {
26-
expect(messages.length).toEqual(1);
21+
return atom.workspace.open(bad).then(editor => lint(editor)).then(messages => {
22+
expect(messages.length).toEqual(1);
2723

28-
// test only the first error
29-
expect(messages[0].type).toEqual('error');
30-
expect(messages[0].text).toEqual('Doctype must be declared first.');
31-
expect(messages[0].filePath).toMatch(/.+bad\.html$/);
32-
expect(messages[0].range).toEqual([[0, 0], [0, 13]]);
33-
});
24+
// test only the first error
25+
expect(messages[0].type).toEqual('error');
26+
expect(messages[0].text).toEqual('Doctype must be declared first.');
27+
expect(messages[0].filePath).toMatch(/.+bad\.html$/);
28+
expect(messages[0].range).toEqual([[0, 0], [0, 13]]);
29+
});
3430
});
3531
});
3632

3733
it('finds nothing wrong with a valid file (good.html)', () => {
3834
waitsForPromise(() => {
3935
const good = path.join(__dirname, 'fixtures', 'good.html');
40-
return atom
41-
.workspace
42-
.open(good)
43-
.then(editor => lint(editor))
44-
.then(messages => {
45-
expect(messages.length).toEqual(0);
46-
});
36+
return atom.workspace.open(good).then(editor => lint(editor)).then(messages => {
37+
expect(messages.length).toEqual(0);
38+
});
4739
});
4840
});
4941
});

0 commit comments

Comments
 (0)