Skip to content
Browse files

failing test case that should be fixed

  • Loading branch information...
1 parent bfe4162 commit 9604fc11fa9f800a2e43b52b48c06e7fd3465053 @andrewrk committed Mar 9, 2013
Showing with 15 additions and 6 deletions.
  1. +1 −5 lib/cmd.js
  2. +11 −1 tests/depbug/expected.txt
  3. +1 −0 tests/depbug/shared/chem/vec2d.co
  4. +2 −0 tests/depbug/switches.txt
View
6 lib/cmd.js
@@ -20,11 +20,7 @@ parser.on('help', function(){
process.exit(1);
});
parser.on('version', function(){
- var libDir = path.dirname(fs.realpathSync(__filename));
- var pkgPath = path.resolve(libDir, "..", "package.json");
- var data = fs.readFileSync(pkgPath, 'utf8');
- var pkg = JSON.parse(data);
- console.log(pkg.version);
+ console.log(require('../package').version);
process.exit(1);
});
parser.on(0, function(it){
View
12 tests/depbug/expected.txt
@@ -1,4 +1,14 @@
-chem
astar
+batch
+event_emitter
+sound
+vec2d
+button_offset
+button
+bootstrap
+engine
+helpers
+sprite
+chem
grid
main
View
1 tests/depbug/shared/chem/vec2d.co
@@ -0,0 +1 @@
+console.log("vec2d")
View
2 tests/depbug/switches.txt
@@ -0,0 +1,2 @@
+--lib tests/depbug/
+--lib tests/depbug/shared/

0 comments on commit 9604fc1

Please sign in to comment.
Something went wrong with that request. Please try again.