Code coverage report for string/crop.js

Statements: 100% (5 / 5)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (4 / 4)     

All files » string/ » crop.js
1 2 3 4 5 6 7 8 9 10 11 121         1 4     1    
define(['./truncate'], function (truncate) {
    /**
     * Truncate string at full words.
     * @version 0.1.0 (2011/10/31)
     */
     function crop(str, maxChars, append) {
        return truncate(str, maxChars, append, true);
     }
 
     return crop;
});