2024-09-27 20:49:36 +02:00
|
|
|
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");
|
|
|
|
});
|
|
|
|
}
|
2024-10-08 20:55:16 +02:00
|
|
|
{
|
|
|
|
const name = "";
|
|
|
|
test(name, () => {
|
|
|
|
expect(name.capitalize()).toBe("");
|
|
|
|
});
|
|
|
|
}
|
2024-09-27 20:49:36 +02:00
|
|
|
});
|