diff options
Diffstat (limited to 'node_modules/textr/test/support.js')
| -rw-r--r-- | node_modules/textr/test/support.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/node_modules/textr/test/support.js b/node_modules/textr/test/support.js deleted file mode 100644 index a530253..0000000 --- a/node_modules/textr/test/support.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -/** - * Convert text to capitalized string - * @param {String} text - * @return {String} - */ -exports.capitalize = function(text) { - return text.replace(/\b(.{1})/g, function (l) { - return l.toUpperCase(); - }); -}; - -/** - * Wrap text by html headline with given level - * @param {Number} level - * @return {Function} - */ -exports.headline = function(level) { - return function(text) { - return '<h' + level + '>' + text + '</h' + level + '>'; - }; -}; - -/** - * noop function - */ -exports.noop = function() {}; |