Permalink
Browse files

test most popular 20 modules - done

  • Loading branch information...
1 parent 008e8a1 commit a469e470e6bce26d543a7a192028b3d7ceec7b80 Edward Hotchkiss committed Nov 30, 2011
Showing with 15 additions and 0 deletions.
  1. +15 −0 test/popular_modules.test.js
@@ -32,4 +32,19 @@ var popular = [
"mongoose"
];
+popular.forEach(function(moduleName) {
+ vows.describe("Testing version.fetch() on: " + moduleName).addBatch({
+ "When fetching the Version number":{
+ topic:function(){
+ version.fetch(moduleName, this.callback);
+ },
+ "we should receive no error back and receive a version in string format":function(error, version) {
+ assert.equal(error, null);
+ assert.notEqual(version, null);
+ assert.equal(typeof(version), "string");
+ }
+ }
+ }).export(module);
+});
+
/* EOF */

0 comments on commit a469e47

Please sign in to comment.