Permalink
Browse files

Add basic test

  • Loading branch information...
gmarty committed May 29, 2012
1 parent 565c863 commit 189cd39cecd823d7240e2271d3d3af8835bdb853
Showing with 34 additions and 0 deletions.
  1. +34 −0 test/closure-compiler_test.js
@@ -0,0 +1,34 @@
+var grunt = require('grunt');
+
+/*
+ ======== A Handy Little Nodeunit Reference ========
+ https://github.com/caolan/nodeunit
+
+ Test methods:
+ test.expect(numAssertions)
+ test.done()
+ Test assertions:
+ test.ok(value, [message])
+ test.equal(actual, expected, [message])
+ test.notEqual(actual, expected, [message])
+ test.deepEqual(actual, expected, [message])
+ test.notDeepEqual(actual, expected, [message])
+ test.strictEqual(actual, expected, [message])
+ test.notStrictEqual(actual, expected, [message])
+ test.throws(block, [error], [message])
+ test.doesNotThrow(block, [error], [message])
+ test.ifError(value)
+*/
+
+exports['less'] = {
+ setUp: function(done) {
+ // setup here
+ done();
+ },
+ 'helper': function(test) {
+ test.expect(1);
+ // tests here
+ test.ok(true); // good news, true === true
+ test.done();
+ }
+};

0 comments on commit 189cd39

Please sign in to comment.