Permalink
Browse files

Improving UT.

  • Loading branch information...
1 parent c7d9844 commit 1f9cd6f9978a000f9f256662052dd3ba360dd802 Andre Rodrigues committed Oct 23, 2012
Showing with 9 additions and 7 deletions.
  1. +9 −7 test/cli/commands/cli.site-tests.js
@@ -220,14 +220,8 @@ suite('cli', function(){
};
// Create site
- var cmd = ('node cli.js site create ' + siteName + ' --github --json --location').split(' ');
+ var cmd = ('node cli.js site create ' + siteName + ' --json --location').split(' ');
cmd.push('East US');
- cmd.push('--username');
- cmd.push(githubUsername);
- cmd.push('--pass');
- cmd.push(githubPassword);
- cmd.push('--repository');
- cmd.push(githubRepositoryUri);
capture(function() {
cli.parse(cmd);
@@ -244,6 +238,14 @@ suite('cli', function(){
// List sites
cmd = 'node cli.js site list --json'.split(' ');
+ cmd.push('--github');
+ cmd.push('--username');
+ cmd.push(githubUsername);
+ cmd.push('--pass');
+ cmd.push(githubPassword);
+ cmd.push('--repository');
+ cmd.push(githubRepositoryUri);
+
capture(function() {
cli.parse(cmd);
}, function (result) {

0 comments on commit 1f9cd6f

Please sign in to comment.