mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
tests: clean up
This commit is contained in:
parent
70c738948d
commit
13cbcd8f91
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user