@teambit/toolbox.string.capitalize
Advanced tools
Comparing version 0.0.499 to 0.0.500
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.capitalize = capitalize; | ||
@@ -12,5 +9,4 @@ /** | ||
function capitalize(str) { | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
return str.charAt(0).toUpperCase() + str.slice(1); | ||
} | ||
//# sourceMappingURL=capitalize.js.map |
"use strict"; | ||
function _capitalize() { | ||
const data = require("./capitalize"); | ||
_capitalize = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _chai() { | ||
const data = require("chai"); | ||
_chai = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const capitalize_1 = require("./capitalize"); | ||
const chai_1 = require("chai"); | ||
describe('capitalize()', () => { | ||
it('should capitalize a single word', () => { | ||
(0, _chai().expect)((0, _capitalize().capitalize)('foo')).to.equal('Foo'); | ||
}); | ||
it('should capitalize a single word', () => { | ||
(0, chai_1.expect)((0, capitalize_1.capitalize)('foo')).to.equal('Foo'); | ||
}); | ||
}); | ||
//# sourceMappingURL=capitalize.spec.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, "capitalize", { | ||
enumerable: true, | ||
get: function () { | ||
return _capitalize().capitalize; | ||
} | ||
}); | ||
function _capitalize() { | ||
const data = require("./capitalize"); | ||
_capitalize = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.capitalize = void 0; | ||
var capitalize_1 = require("./capitalize"); | ||
Object.defineProperty(exports, "capitalize", { enumerable: true, get: function () { return capitalize_1.capitalize; } }); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@teambit/toolbox.string.capitalize", | ||
"version": "0.0.499", | ||
"version": "0.0.500", | ||
"homepage": "https://bit.cloud/teambit/toolbox/string/capitalize", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"name": "string/capitalize", | ||
"version": "0.0.499" | ||
"version": "0.0.500" | ||
}, | ||
@@ -17,3 +17,3 @@ "dependencies": {}, | ||
"@types/mocha": "9.1.0", | ||
"@teambit/node.envs.node-babel-mocha": "0.1.4" | ||
"@teambit/node.envs.node-typescript-mocha": "0.0.1" | ||
}, | ||
@@ -20,0 +20,0 @@ "peerDependencies": {}, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5513
122