Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[test] Updates to tests to incorporate the engines field.

  • Loading branch information...
commit cdfc4308455a94b7e10dbc8fa2a2a6bc16762eec 1 parent 3cf06f1
@jfhbrook jfhbrook authored
View
4 test/commands/apps-test.js
@@ -168,7 +168,8 @@ vows.describe('jitsu/commands/apps').addBatch({
scripts: {
start: 'server.js'
},
- version: '0.0.0-2'
+ version: '0.0.0-2',
+ engines: { node: 'v0.6.x' }
})
.reply(200, {
app: { state: 'stopped' }
@@ -212,6 +213,7 @@ vows.describe('jitsu/commands/apps').addBatch({
}, function assertion (err) {
process.chdir(mainDirectory);
+ console.error(err);
assert.ok(!err);
})
}).export(module);
View
3  test/commands/package-test.js
@@ -47,7 +47,8 @@ vows.describe('jitsu/commands/package').addBatch({
name: 'example-app',
subdomain: 'example-app',
scripts: { start: 'server.js' },
- version: '0.0.0-1'
+ version: '0.0.0-1',
+ engines: { node: 'v0.6.x' }
};
fs.writeFileSync(packageFile, JSON.stringify(pkg, true, 2))
View
5 test/fixtures/example-app/package.json
@@ -4,5 +4,8 @@
"scripts": {
"start": "server.js"
},
- "version": "0.0.0-1"
+ "version": "0.0.0-1",
+ "engines": {
+ "node": "v0.6.x"
+ }
}
View
3  test/helpers/macros.js
@@ -71,7 +71,8 @@ exports.useAppFixture = function () {
name: 'example-app',
subdomain: 'example-app',
scripts: { start: 'server.js' },
- version: '0.0.0-1'
+ version: '0.0.0-1',
+ engines: { node: 'v0.6.x' }
};
var cwd = process.cwd();
Please sign in to comment.
Something went wrong with that request. Please try again.