Code coverage report for lib/tasks/check.js

Statements: 100% (5 / 5)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (5 / 5)     

All files » lib/tasks/ » check.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17            1 124   124 1     124      
/*
Copyright (c) 2012, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://yuilibrary.com/license/
*/
 
exports.check = function (options, blob, done) {
    var bail = null;
 
    if (blob.result.length === 0) {
        bail = 'writing zero length file from ' + blob.name;
    }
 
    done(bail, new blob.constructor(blob.result, blob));
};