Code coverage report for harmonizer/util/string.js

Statements: 100% (10 / 10)      Branches: 100% (0 / 0)      Functions: 100% (5 / 5)      Lines: 100% (10 / 10)      Ignored: none     

All files » harmonizer/util/ » string.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16  1 1 1 255   1 16 4     1 33 33    
'use strict';
var build = require('nodes');
var esprima = require('esprima');
exports.express = function (string) {
  return build(esprima.parse(string).body[0]);
};
exports.upper = function (string) {
  return string.replace(/^[a-z]/, function (a) {
    return a.toUpperCase();
  });
};
exports.lower = function (string) {
  return string.replace(/^[A-Z]/, function (a) {
    return a.toLowerCase();
  });
};