diff --git a/lib/contributors/add.test.js b/lib/contributors/add.test.js index fc75ce2..6ea20d3 100644 --- a/lib/contributors/add.test.js +++ b/lib/contributors/add.test.js @@ -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', diff --git a/package.json b/package.json index f30b053..b141b15 100644 --- a/package.json +++ b/package.json @@ -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"