Upgrade AVA to 0.14

This commit is contained in:
Jeroen Engels 2016-04-08 00:22:11 +02:00
parent 03bd4581b2
commit 7edc69d87c
2 changed files with 11 additions and 11 deletions

View file

@ -54,9 +54,9 @@ test.cb('should add new contributor at the end of the list of contributors', t =
const contributions = ['doc'];
return addContributor(options, username, contributions, mockInfoFetcher, function (error, contributors) {
t.notOk(error);
t.falsy(error);
t.is(contributors.length, 3);
t.same(contributors[2], {
t.deepEqual(contributors[2], {
login: 'login3',
name: 'Some name',
avatar_url: 'www.avatar.url',
@ -76,9 +76,9 @@ test.cb('should add new contributor at the end of the list of contributors with
options.url = 'www.foo.bar';
return addContributor(options, username, contributions, mockInfoFetcher, function (error, contributors) {
t.notOk(error);
t.falsy(error);
t.is(contributors.length, 3);
t.same(contributors[2], {
t.deepEqual(contributors[2], {
login: 'login3',
name: 'Some name',
avatar_url: 'www.avatar.url',
@ -97,8 +97,8 @@ test.cb(`should not update an existing contributor's contributions where nothing
const contributions = ['blog', 'code'];
return addContributor(options, username, contributions, mockInfoFetcher, function (error, contributors) {
t.notOk(error);
t.same(contributors, options.contributors);
t.falsy(error);
t.deepEqual(contributors, options.contributors);
t.end();
});
});
@ -108,9 +108,9 @@ test.cb(`should update an existing contributor's contributions if a new type is
const username = 'login1';
const contributions = ['bug'];
return addContributor(options, username, contributions, mockInfoFetcher, function (error, contributors) {
t.notOk(error);
t.falsy(error);
t.is(contributors.length, 2);
t.same(contributors[0], {
t.deepEqual(contributors[0], {
login: 'login1',
name: 'Some name',
avatar_url: 'www.avatar.url',
@ -131,9 +131,9 @@ test.cb(`should update an existing contributor's contributions if a new type is
options.url = 'www.foo.bar';
return addContributor(options, username, contributions, mockInfoFetcher, function (error, contributors) {
t.notOk(error);
t.falsy(error);
t.is(contributors.length, 2);
t.same(contributors[0], {
t.deepEqual(contributors[0], {
login: 'login1',
name: 'Some name',
avatar_url: 'www.avatar.url',

View file

@ -33,7 +33,7 @@
"yargs": "^4.3.2"
},
"devDependencies": {
"ava": "^0.13.0",
"ava": "^0.14.0",
"eslint": "^2.4.0",
"eslint-plugin-ava": "^1.2.1",
"xo": "^0.13.0"