From ad2e1d76b723f6969fef434546da12cf2c866d8e Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Sun, 29 Oct 2017 01:47:44 -0400 Subject: [PATCH] test: Fix typos: only in tests and useless console.log() --- test/integration.test.js | 1 - test/verify-pkg.test.js | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/test/integration.test.js b/test/integration.test.js index 241fc7cc..cbc6a5ff 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -36,7 +36,6 @@ test.beforeEach(async t => { }); test.afterEach.always(async t => { - console.log(); // Restore process.env process.env = Object.assign({}, t.context.env); // Restore the current working directory diff --git a/test/verify-pkg.test.js b/test/verify-pkg.test.js index f9ad6d24..06c70b61 100644 --- a/test/verify-pkg.test.js +++ b/test/verify-pkg.test.js @@ -2,12 +2,12 @@ import test from 'ava'; import SemanticReleaseError from '@semantic-release/error'; import verify from '../src/lib/verify-pkg'; -test.only('Verify name and repository', t => { +test('Verify name and repository', t => { // Call the verify module with package t.notThrows(() => verify({name: 'package', repository: {url: 'http://github.com/whats/up.git'}})); }); -test.only('Return error for missing package name', t => { +test('Return error for missing package name', t => { // Call the verify module with package const error = t.throws(() => verify({repository: {url: 'http://github.com/whats/up.git'}})); // Verify error code and type @@ -15,7 +15,7 @@ test.only('Return error for missing package name', t => { t.true(error instanceof SemanticReleaseError); }); -test.only('Return error for missing repository', t => { +test('Return error for missing repository', t => { // Call the verify module with package const error = t.throws(() => verify({name: 'package'})); // Verify error code and type @@ -23,7 +23,7 @@ test.only('Return error for missing repository', t => { t.true(error instanceof SemanticReleaseError); }); -test.only('Return error for missing repository url', t => { +test('Return error for missing repository url', t => { // Call the verify module with package const error = t.throws(() => verify({name: 'package', repository: {}})); // Verify error code and type