refactor(Cypress): add nodemodules
This commit is contained in:
15
node_modules/title-case/title-case.js
generated
vendored
Normal file
15
node_modules/title-case/title-case.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
var noCase = require('no-case')
|
||||
var upperCase = require('upper-case')
|
||||
|
||||
/**
|
||||
* Title case a string.
|
||||
*
|
||||
* @param {string} value
|
||||
* @param {string} [locale]
|
||||
* @return {string}
|
||||
*/
|
||||
module.exports = function (value, locale) {
|
||||
return noCase(value, locale).replace(/^.| ./g, function (m) {
|
||||
return upperCase(m, locale)
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user