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

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcanemagus committed Jan 5, 2016
1 parent 32ef42f commit 47e9226
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/linter-markdown-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
});
Expand Down Expand Up @@ -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);
});
Expand Down

0 comments on commit 47e9226

Please sign in to comment.