Code coverage report for lib/tasks.js

Statements: 100% (8 / 8)      Branches: 75% (3 / 4)      Functions: 100% (1 / 1)      Lines: 100% (8 / 8)     

All files » lib/ » tasks.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24          1     1     1 13 12 12 12 12              
/*
Copyright (c) 2012, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://yuilibrary.com/license/
*/
var fs = require('fs'),
    path = require('path');
 
var files = fs.readdirSync(path.join(__dirname, './tasks/'));
 
/*jshint forin: false */
files.forEach(function (file) {
    if (path.extname(file) === '.js') {
        var mod = require('./tasks/' + file), name;
        for (name in mod) {
            Eif (mod.hasOwnProperty(name)) {
                exports[name] = mod[name];
            }
        }
    }
});