diff --git a/package.json b/package.json index 007104c..df7699c 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "devDependencies": { "eslint": "^1.10.3", "babel-eslint": "^4.1.6", - "eslint-config-airbnb": "^2.1.1" + "eslint-config-airbnb": "^3.0.0" }, "eslintConfig": { "rules": { diff --git a/spec/linter-markdown-spec.js b/spec/linter-markdown-spec.js index f056ffc..303b420 100644 --- a/spec/linter-markdown-spec.js +++ b/spec/linter-markdown-spec.js @@ -17,9 +17,10 @@ describe('The remark-lint provider for Linter', () => { describe('checks a file with issues and', () => { let editor = null; + const dciPath = path.join(__dirname, 'fixtures', 'definition-case-invalid.md'); beforeEach(() => { waitsForPromise(() => { - return atom.workspace.open(path.join(__dirname, 'fixtures', 'definition-case-invalid.md')).then(openEditor => { + return atom.workspace.open(dciPath).then(openEditor => { editor = openEditor; }); }); @@ -52,8 +53,9 @@ describe('The remark-lint provider for Linter', () => { }); it('finds nothing wrong with a valid file', () => { + const dcvPath = path.join(__dirname, 'fixtures', 'definition-case-valid.md'); waitsForPromise(() => { - return atom.workspace.open(path.join(__dirname, 'fixtures', 'definition-case-valid.md')).then(editor => { + return atom.workspace.open(dcvPath).then(editor => { return lint(editor).then(messages => { expect(messages.length).toEqual(0); });