Skip to content

Commit

Permalink
Merge 366d57f into 8da04bf
Browse files Browse the repository at this point in the history
  • Loading branch information
greenkeeperio-bot committed Dec 31, 2015
2 parents 8da04bf + 366d57f commit 216aa02
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import credits from './';
import tmp from 'tmp';
import fs from 'fs';

test( 'credits - folder exists', t => {
test.cb( 'credits - folder exists', t => {
tmp.dir( { unsafeCleanup : true }, ( error, path, cleanUpCb ) => {
fs.mkdirSync( `${path}/node_modules` );

Expand Down Expand Up @@ -100,7 +100,7 @@ test( 'credits - folder exists', t => {
} );
} );

test( 'credits - folder does not exist', t => {
test.cb( 'credits - folder does not exist', t => {
credits( '/path/that/does/not/exist' )
.catch( error => {
t.same( error.message, '/path/that/does/not/exist does not exist' );
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"homepage": "https://github.com/stefanjudis/credits#readme",
"devDependencies": {
"ava": "^0.6.0",
"ava": "^0.9.1",
"coveralls": "^2.11.4",
"eslint": "^1.7.3",
"nyc": "^5.0.1",
Expand Down
10 changes: 5 additions & 5 deletions util/credit.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import test from 'ava';
import creditUtil from './credit';


test( 'getCredit - email is included', t => {
test.cb( 'getCredit - email is included', t => {
let credits = [ { email : 'bob@calsow.io', url : 'http://4waisenkinder.de' } ];

let credit = creditUtil.getCredit( credits, { email : 'bob@calsow.io' } );
Expand All @@ -11,7 +11,7 @@ test( 'getCredit - email is included', t => {
t.end();
} );

test( 'getCredit - only name is included', t => {
test.cb( 'getCredit - only name is included', t => {
let credits = [ { name : 'Bob Calsow', url : 'http://4waisenkinder.de' } ];

let credit = creditUtil.getCredit( credits, { name : 'Bob Calsow' } );
Expand All @@ -20,7 +20,7 @@ test( 'getCredit - only name is included', t => {
t.end();
} );

test( 'getCredit - particular credit is not included', t => {
test.cb( 'getCredit - particular credit is not included', t => {
let credits = [];

let credit = creditUtil.getCredit( credits, { name : 'Stefan Judis' } );
Expand All @@ -30,7 +30,7 @@ test( 'getCredit - particular credit is not included', t => {
} );


test( 'addCreditToCredits - credit is not included yet', t => {
test.cb( 'addCreditToCredits - credit is not included yet', t => {
let credits = [];

credits = creditUtil.addCreditToCredits( credits, { name : 'Bob Calsow' }, 'foo' );
Expand All @@ -39,7 +39,7 @@ test( 'addCreditToCredits - credit is not included yet', t => {
t.end();
} );

test( 'addCreditToCredits - credit is included', t => {
test.cb( 'addCreditToCredits - credit is included', t => {
let credits = [ { name : 'Bob Calsow', packages : [ 'foo' ] } ];

credits = creditUtil.addCreditToCredits( credits, { name : 'Bob Calsow' }, 'bar' );
Expand Down
14 changes: 7 additions & 7 deletions util/package.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import test from 'ava';
import { authors, index } from 'all-stars';
import packageUtil from './package';

test( 'getAuthor - author is a string', t => {
test.cb( 'getAuthor - author is a string', t => {
// only short hand name
let packageJson1 = {
author : 'Bob Calsow'
Expand Down Expand Up @@ -54,7 +54,7 @@ test( 'getAuthor - author is a string', t => {
t.end();
} );

test( 'getAuthor - author is an object', t => {
test.cb( 'getAuthor - author is an object', t => {
let packageJson = {
author : {
name : 'Bob Calsow',
Expand All @@ -69,7 +69,7 @@ test( 'getAuthor - author is an object', t => {
t.end();
} );

test( 'getAuthor - author is not defined', t => {
test.cb( 'getAuthor - author is not defined', t => {
let packageJson = {};

let author = packageUtil.getAuthor( packageJson );
Expand All @@ -78,7 +78,7 @@ test( 'getAuthor - author is not defined', t => {
t.end();
} );

test( 'getAuthor - author in all-stars has additional properties', t => {
test.cb( 'getAuthor - author in all-stars has additional properties', t => {
let packageJson = {
author : {
name : 'Archimedes of Syracuse',
Expand Down Expand Up @@ -113,7 +113,7 @@ test( 'getAuthor - author in all-stars has additional properties', t => {
} );


test( 'getMaintainers - maintainers is not defined', t => {
test.cb( 'getMaintainers - maintainers is not defined', t => {
let packageJson = {
maintainers : [
'Bob Calsow <bob@calsow.io> (http://4waisenkinder.de)',
Expand All @@ -138,7 +138,7 @@ test( 'getMaintainers - maintainers is not defined', t => {
t.end();
} );

test( 'getMaintainers - maintainers is an invalid string', t => {
test.cb( 'getMaintainers - maintainers is an invalid string', t => {
let packageJson = {
maintainers : 'Bob Calsow <bob@calsow.io> (http://4waisenkinder.de)'
};
Expand All @@ -152,7 +152,7 @@ test( 'getMaintainers - maintainers is an invalid string', t => {
t.end();
} );

test( 'getMaintainers - maintainers is not defined', t => {
test.cb( 'getMaintainers - maintainers is not defined', t => {
let packageJson = {};

let maintainers = packageUtil.getMaintainers( packageJson );
Expand Down

0 comments on commit 216aa02

Please sign in to comment.