Skip to content

Commit

Permalink
parse inject value correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
zzo committed Aug 24, 2011
1 parent 7e69677 commit 1b298bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/nodejute/jute/server.js
Expand Up @@ -173,7 +173,7 @@ Create: function(hub) {
}

// dynamically inject JUTE?
if (hub.config.inject && type.match(/javascript/)) {
if (parseInt(hub.config.inject, 10) && type.match(/javascript/)) {
var file = fs.readFileSync(path, 'utf8'),
regex = /\)\s*\.\s*use\s*\(([^)]+)/;

Expand Down
2 changes: 1 addition & 1 deletion backend/nodejute/package.json
Expand Up @@ -2,7 +2,7 @@
"name": "jute",
"description": "Javascript Unit Test Environment",
"keywords": ["selenium", "test", "testing", "unit", "tests"],
"version": "0.0.40",
"version": "0.0.41",
"author": "Mark Ethan Trostler <mark@zzo.com>",
"preferGlobal": true,
"bin" : {
Expand Down

0 comments on commit 1b298bb

Please sign in to comment.