mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
14 lines
379 B
JavaScript
14 lines
379 B
JavaScript
(function(){
|
|
process.mixin(require('assert'));
|
|
task('test', 'run each of the unit tests', function() {
|
|
var _a, _b, _c, _d, test;
|
|
_a = []; _b = test_files;
|
|
for (_c = 0, _d = _b.length; _c < _d; _c++) {
|
|
test = _b[_c];
|
|
_a.push(fs.readFile(test, function(err, code) {
|
|
return eval(coffee.compile(code));
|
|
}));
|
|
}
|
|
return _a;
|
|
});
|
|
})();
|