Skip to content

Commit

Permalink
#2 travis codestyle stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
quazardous committed Jan 6, 2017
1 parent d4b676b commit caaaeb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/readify.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ const sortFiles = currify((attr, order, array) => {
// nothing
break;
case 'asc':
// nothing
break;
default:
order = 'asc';
}
Expand All @@ -52,7 +54,8 @@ const sortFiles = currify((attr, order, array) => {
cmp = (a, b) => (a > b ? 1 : -1);
break;
case 'name':
// no break;
cmp = (a, b) => a.localeCompare(b.attr);
break;
default:
attr = 'name';
cmp = (a, b) => a.localeCompare(b.attr);
Expand Down
4 changes: 2 additions & 2 deletions test/readify.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,14 +395,14 @@ test('readify sort: size asc raw', (t) => {

// no comment
test('readify sort: owner', (t) => {
readify('./test/dir', {sort: 'owner'}, (error, data) => {
readify('./test/dir', {sort: 'owner'}, (error) => {
t.notOk(error, 'no error');
t.end();
});
});

test('readify sort: date', (t) => {
readify('./test/dir', {sort: 'date'}, (error, data) => {
readify('./test/dir', {sort: 'date'}, (error) => {
t.notOk(error, 'no error');
t.end();
});
Expand Down

0 comments on commit caaaeb5

Please sign in to comment.