Commit cc58b509 cc58b5090cfc714cfccac4996f31aa3e8110199a by Nicolas Perriault

added tests for utils' isJsFile()

1 parent a3e8620a
......@@ -30,6 +30,22 @@
}
})();
t.comment('isJsFile()');
(function() {
testCases = {
'': false,
'toto.png': false,
'plop': false,
'gniii.coffee': true,
'script.js': true
};
for (var testCase in testCases) {
t.assertEquals(isJsFile(testCase), testCases[testCase], 'isJsFile() checks for js file');
}
})();
t.comment('mergeObjects()');
(function() {
......