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

Commit 2a78351

Browse files
greenkeeperio-botArcanemagus
authored andcommitted
Update atom-linter to version 6.0.0 🚀 (#120)
* chore(package): update atom-linter to version 6.0.0 https://greenkeeper.io/ * Cleanup the specs * Update the expected range for atom-linter v6
1 parent f5fc546 commit 2a78351

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"homepage": "https://github.com/AtomLinter/linter-htmlhint#readme",
2828
"dependencies": {
29-
"atom-linter": "^5.0.2",
29+
"atom-linter": "^6.0.0",
3030
"atom-package-deps": "^4.0.1",
3131
"htmlhint": "0.9.13",
3232
"strip-json-comments": "^2.0.1",

‎spec/linter-htmlhint-spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ describe('The htmlhint provider for Linter', () => {
2121
expect(messages.length).toEqual(1);
2222

2323
// test only the first error
24-
expect(messages[0].type).toEqual('error');
25-
expect(messages[0].text).toEqual('Doctype must be declared first.');
26-
expect(messages[0].filePath).toMatch(/.+bad\.html$/);
27-
expect(messages[0].range).toEqual([[0, 0], [0, 13]]);
24+
expect(messages[0].type).toBe('error');
25+
expect(messages[0].text).toBe('Doctype must be declared first.');
26+
expect(messages[0].filePath).toBe(bad);
27+
expect(messages[0].range).toEqual([[0, 0], [0, 5]]);
2828
});
2929
});
3030
});
@@ -33,7 +33,7 @@ describe('The htmlhint provider for Linter', () => {
3333
waitsForPromise(() => {
3434
const good = path.join(__dirname, 'fixtures', 'good.html');
3535
return atom.workspace.open(good).then(editor => lint(editor)).then(messages => {
36-
expect(messages.length).toEqual(0);
36+
expect(messages.length).toBe(0);
3737
});
3838
});
3939
});

0 commit comments

Comments
 (0)