29 lines
513 B
TypeScript
29 lines
513 B
TypeScript
|
import "../../modules/string";
|
||
|
|
||
|
describe("Capitalize", () => {
|
||
|
{
|
||
|
const name = "test";
|
||
|
test(name, () => {
|
||
|
expect(name.capitalize()).toBe("Test");
|
||
|
});
|
||
|
}
|
||
|
{
|
||
|
const name = "MACHIN";
|
||
|
test(name, () => {
|
||
|
expect(name.capitalize()).toBe("MACHIN");
|
||
|
});
|
||
|
}
|
||
|
{
|
||
|
const name = "tRUC";
|
||
|
test(name, () => {
|
||
|
expect(name.capitalize()).toBe("TRUC");
|
||
|
});
|
||
|
}
|
||
|
{
|
||
|
const name = "Super";
|
||
|
test(name, () => {
|
||
|
expect(name.capitalize()).toBe("Super");
|
||
|
});
|
||
|
}
|
||
|
});
|