Permalink
Browse files

Added simple require tests, more to come in time.

  • Loading branch information...
1 parent 4653bac commit cb50625e0694d6ed7f48ebb5c79af6947b608478 @davglass davglass committed Oct 9, 2012
Showing with 33 additions and 0 deletions.
  1. +33 −0 tests/default.js
View
@@ -0,0 +1,33 @@
+var vows = require('vows'),
+ path = require('path'),
+ assert = require('assert');
+
+var tests = {
+ "require selleck": {
+ topic: function() {
+ return require('../');
+ },
+ "should have Higgins": function(topic) {
+ assert.ok(topic.Higgins);
+ },
+ "should have View": function(topic) {
+ assert.ok(topic.View);
+ },
+ "should have default theme": function(topic) {
+ assert.ok(topic.defaultTheme);
+ var theme = path.join(__dirname, '../', 'themes', 'default');
+ assert.equal(topic.defaultTheme, theme);
+ },
+ 'should have log method': function(topic) {
+ assert.ok(topic.log);
+ },
+ 'should have render method': function(topic) {
+ assert.ok(topic.render);
+ },
+ 'should have prepare method': function(topic) {
+ assert.ok(topic.prepare);
+ }
+ }
+};
+
+vows.describe('Selleck').addBatch(tests).export(module);

0 comments on commit cb50625

Please sign in to comment.