Permalink
Browse files

add vows, tests for vows. add .logule stub

  • Loading branch information...
1 parent 602fc92 commit 54ee6d7c606326a70df7226798c9e25b177b5061 @vpetrov committed Oct 4, 2012
Showing with 31 additions and 3 deletions.
  1. +3 −0 .logule
  2. +7 −3 package.json
  3. +21 −0 test/config.js
View
3 .logule
@@ -0,0 +1,3 @@
+module.exports={
+ //no customizations yet
+}
View
10 package.json
@@ -1,6 +1,6 @@
{
"name": "survana",
- "version": "0.0.1e",
+ "version": "0.0.1f",
"author": "Victor Petrov <victor_petrov@harvard.edu>",
"description":"A framework for creating and deploying questionnaires",
"repository":{
@@ -13,6 +13,10 @@
"logule": "1.0.x",
"mongodb": "1.0.x",
"express": "2.5.x",
- "ejs": "*"
- }
+ "ejs": "*",
+ "vows": "0.6.x"
+ },
+ "scripts": {
+ "test": "vows --spec"
+ }
}
View
21 test/config.js
@@ -0,0 +1,21 @@
+var vows=require('vows');
+var assert=require('assert');
+
+var suite=vows.describe('config');
+
+suite.addBatch({
+ 'config':{
+ topic:require('../config.js'),
+ 'has brand name':function(topic){
+ assert.isString(topic['brand']);
+ },
+ 'has module prefix':function(topic){
+ assert.isString(topic['module_prefix']);
+ },
+ 'can convert to requirejs':function(topic){
+ assert.isFunction(topic['to_requirejs']);
+ }
+ }
+});
+
+suite.export(module);

0 comments on commit 54ee6d7

Please sign in to comment.