grunt-init grunt-init-commonjs --force

This commit is contained in:
Vahagn Khachatryan
2018-12-21 16:29:41 +00:00
parent 52e165a6f3
commit 1359c7b2c5
9 changed files with 279 additions and 6 deletions

36
test/gragir.js_test.js Normal file
View File

@@ -0,0 +1,36 @@
'use strict';
var gragir_js = require('../lib/gragir.js.js');
/*
======== 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['awesome'] = {
setUp: function(done) {
// setup here
done();
},
'no args': function(test) {
test.expect(1);
// tests here
test.equal(gragir_js.awesome(), 'awesome', 'should be awesome.');
test.done();
}
};