mirror of
https://github.com/all-contributors/cli.git
synced 2025-01-09 13:36:29 +00:00
Upgrade AVA to 0.14
This commit is contained in:
parent
03bd4581b2
commit
7edc69d87c
2 changed files with 11 additions and 11 deletions
|
@ -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',
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue