Browse files

add spec for package.json

  • Loading branch information...
1 parent 9588dda commit 4113210cbc863ea05fc60064fa5a599c3afb2b91 @smtlaissezfaire smtlaissezfaire committed Nov 24, 2010
Showing with 9 additions and 0 deletions.
  1. +9 −0 spec/unit/commands/version.js
View
9 spec/unit/commands/version.js
@@ -34,5 +34,14 @@ describe("NodeDebugger", function() {
version.parseCommand("foo").should.equal(undefined);
});
});
+
+ describe("package.json version", function() {
+ it("should have the correct version", function() {
+ var file_contents = require("fs").readFileSync("./package.json", 'ascii');
+ var data = JSON.parse(file_contents);
+
+ data["version"].should.equal("0.2.1");
+ });
+ });
});
});

0 comments on commit 4113210

Please sign in to comment.