Code coverage report for string/pascalCase.js

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

All files » string/ » pascalCase.js
1 2 3 4 5 6 7 8 9 10 111         1 5   1    
define(['./camelCase', './upperCase'], function(camelCase, upperCase){
    /**
     * camelCase + uppercase first char
     * @version 0.1.0 (2011/10/26)
     */
    function pascalCase(str){
        return camelCase(str).replace(/^[a-z]/, upperCase);
    }
    return pascalCase;
});