test: Fix typos: only in tests and useless console.log()

This commit is contained in:
Pierre Vanduynslager
2017-10-29 14:37:05 -07:00
committed by Gregor Martynus
parent 65d344bae8
commit ad2e1d76b7
2 changed files with 4 additions and 5 deletions
-1
View File
@@ -36,7 +36,6 @@ test.beforeEach(async t => {
}); });
test.afterEach.always(async t => { test.afterEach.always(async t => {
console.log();
// Restore process.env // Restore process.env
process.env = Object.assign({}, t.context.env); process.env = Object.assign({}, t.context.env);
// Restore the current working directory // Restore the current working directory
+4 -4
View File
@@ -2,12 +2,12 @@ import test from 'ava';
import SemanticReleaseError from '@semantic-release/error'; import SemanticReleaseError from '@semantic-release/error';
import verify from '../src/lib/verify-pkg'; 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 // Call the verify module with package
t.notThrows(() => verify({name: 'package', repository: {url: 'http://github.com/whats/up.git'}})); 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 // Call the verify module with package
const error = t.throws(() => verify({repository: {url: 'http://github.com/whats/up.git'}})); const error = t.throws(() => verify({repository: {url: 'http://github.com/whats/up.git'}}));
// Verify error code and type // Verify error code and type
@@ -15,7 +15,7 @@ test.only('Return error for missing package name', t => {
t.true(error instanceof SemanticReleaseError); 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 // Call the verify module with package
const error = t.throws(() => verify({name: 'package'})); const error = t.throws(() => verify({name: 'package'}));
// Verify error code and type // Verify error code and type
@@ -23,7 +23,7 @@ test.only('Return error for missing repository', t => {
t.true(error instanceof SemanticReleaseError); 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 // Call the verify module with package
const error = t.throws(() => verify({name: 'package', repository: {}})); const error = t.throws(() => verify({name: 'package', repository: {}}));
// Verify error code and type // Verify error code and type