Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[test] updated jitsu.commands.env.load tests

  • Loading branch information...
commit 5aecfdc9106b5e89dbfd4d23db457afc4fab6651 1 parent ff4cee5
@blakmatrix blakmatrix authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 test/commands/env-test.js
View
10 test/commands/env-test.js
@@ -435,10 +435,16 @@ vows.describe('jitsu/commands/env').addBatch({
}
)
}).addBatch({
- 'env load enviroment.json': shouldNodejitsuOk('The current app should load enviroment variables from the specified file',
+ 'env load env_vars.json': shouldNodejitsuOk('The current app should load enviroment variables from the specified file',
function setup() {
jitsu.prompt.override.confirm = 'yes';
nock('http://api.mockjitsu.com')
+ .get('/apps/tester/env_vars.json')
+ .reply(400, {
+ result: {
+ error: 'not_found'
+ }
+ }, { 'x-powered-by': 'Nodejitsu' })
.get('/apps/tester/jitsu')
.reply(200, {
app: {
@@ -455,7 +461,7 @@ vows.describe('jitsu/commands/env').addBatch({
}
)
}).addBatch({
- 'env load barbaz enviroment.json': shouldNodejitsuOk('The specified app should load enviroment variables from the specified file',
+ 'env load barbaz env_vars.json': shouldNodejitsuOk('The specified app should load enviroment variables from the specified file',
function setup() {
jitsu.prompt.override.confirm = 'yes';
nock('http://api.mockjitsu.com')
Please sign in to comment.
Something went wrong with that request. Please try again.