From 13cbcd8f91ef449eaf4ffd81d930c942274ee68d Mon Sep 17 00:00:00 2001 From: Austen Collins Date: Sun, 18 Oct 2015 20:06:59 -0700 Subject: [PATCH] tests: clean up --- tests/all.js | 2 +- tests/cli/TestActionProjectCreate.js | 8 ++++---- tests/cli/TestPlugins.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/all.js b/tests/all.js index c82613d17..d7300fd04 100644 --- a/tests/all.js +++ b/tests/all.js @@ -4,7 +4,7 @@ //TODO: must setup an env var file for unittest require('./config'); //init config -describe('AllTests', function() { +describe('All Tests', function() { before(function(done) { this.timeout(0); //dont timeout anything diff --git a/tests/cli/TestActionProjectCreate.js b/tests/cli/TestActionProjectCreate.js index 9721f5ecc..d82ff5e53 100644 --- a/tests/cli/TestActionProjectCreate.js +++ b/tests/cli/TestActionProjectCreate.js @@ -22,7 +22,7 @@ let Jaws = new JAWS({ interactive: false, }); -describe('Test Project Create', function() { +describe('Test Plugin: Project Create', function() { before(function(done) { process.chdir(os.tmpdir()); @@ -33,8 +33,8 @@ describe('Test Project Create', function() { done(); }); - describe('Positive tests', function() { - it('Create new project', function(done) { + describe('Test Plugin: Project Create', function() { + it('should create a new project in temp directory', function(done) { this.timeout(0); @@ -51,7 +51,7 @@ describe('Test Project Create', function() { ) .then(function() { let jawsJson = utils.readAndParseJsonSync( - path.join(os.tmpdir(), config.newName, 'jaws.json')); + path.join(os.tmpdir(), name, 'jaws.json')); let region = false; diff --git a/tests/cli/TestPlugins.js b/tests/cli/TestPlugins.js index d7a1020e1..ca196a8d7 100644 --- a/tests/cli/TestPlugins.js +++ b/tests/cli/TestPlugins.js @@ -110,7 +110,7 @@ class PromisePlugin extends JawsPlugin { * Run Tests */ -describe('Test Plugins', function() { +describe('Test Plugin Architecture', function() { before(function(done) { Jaws.addPlugin(new PromisePlugin(Jaws, {})); @@ -121,7 +121,7 @@ describe('Test Plugins', function() { done(); }); - describe('Test Plugin', function() { + describe('Test Plugin Architecture', function() { it('should run and attach values to context', function(done) { this.timeout(0);