Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVerschueren committed Dec 29, 2016
1 parent 4d982b1 commit af3e7cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion test/no-git-merge-conflict.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ const createError = file => ({
});

test(async t => {
t.deepEqual(await m('.', opts), [
const result = await m('.', opts);
result.sort((a, b) => a.file.localeCompare(b.file));

t.deepEqual(result, [
createError('bar.txt'),
createError('rainbow.txt'),
createError('test.txt'),
Expand Down
5 changes: 3 additions & 2 deletions test/pkg-description.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import path from 'path';
import test from 'ava';
import {lint as m} from '../';
import {fix} from './fixtures/utils';

const opts = {
cwd: 'test/fixtures/pkg-description',
inherit: false
};

test('package description starts with lowercase', async t => {
t.deepEqual(await m('lowercase', opts), [
t.deepEqual(fix(await m('lowercase', opts)), [
{
ruleId: 'pkg-description',
severity: 'error',
Expand All @@ -19,7 +20,7 @@ test('package description starts with lowercase', async t => {
});

test('package description ends with a dot', async t => {
t.deepEqual(await m('dot', opts), [
t.deepEqual(fix(await m('dot', opts)), [
{
ruleId: 'pkg-description',
severity: 'error',
Expand Down

0 comments on commit af3e7cb

Please sign in to comment.