Merge pull request #768 from minibikini/v0.5

fixes `tests/actions/ProjectInstall.js`
This commit is contained in:
Austen 2016-03-10 21:31:50 -08:00
commit 402abb97ff
3 changed files with 5 additions and 7 deletions

View File

@ -11,8 +11,7 @@
*
* Options:
* - name (String) a name for new project
* - domain (String) a domain for new project to create the bucket name with
* - notificationEmail (String) email to use for AWS alarms
* - bucket (String) a bucket name for new project
* - profile (String) an AWS profile to create the project in. Must be available in ~/.aws/credentials
* - region (String) the first region for your new project
* - stage (String) the first stage for your new project

View File

@ -27,7 +27,7 @@ describe('All Tests', function() {
require('./tests/actions/EndpointDeploy');
require('./tests/actions/EventDeploy');
require('./tests/actions/ProjectInit');
// require('./tests/actions/ProjectInstall'); // BROKEN.
require('./tests/actions/ProjectInstall');
require('./tests/actions/ResourcesDiff');
require('./tests/actions/PluginCreate');
require('./tests/actions/FunctionRollback');

View File

@ -31,8 +31,7 @@ let serverless = new Serverless( undefined, {
let validateEvent = function(evt) {
assert.equal(true, typeof evt.options.name !== 'undefined');
assert.equal(true, typeof evt.options.domain !== 'undefined');
assert.equal(true, typeof evt.options.notificationEmail !== 'undefined');
assert.equal(true, typeof evt.options.bucket !== 'undefined');
assert.equal(true, typeof evt.options.region !== 'undefined');
assert.equal(true, typeof evt.options.noExeCf !== 'undefined');
assert.equal(true, typeof evt.options.stage !== 'undefined');
@ -119,11 +118,11 @@ describe('Test action: Project Install', function() {
this.timeout(0);
let name = ('testprj-' + uuid.v4()).replace(/-/g, '');
let domain = name + '.com';
let bucket = name + '.com';
let evt = {
options: {
name: name,
domain: domain,
bucket: bucket,
stage: config.stage,
region: config.region,
profile: config.profile_development,