string test
Some checks failed
PR Check / lint-and-format (pull_request) Failing after 15s

This commit is contained in:
Mylloon 2024-09-27 14:53:37 +02:00
parent 79bce239cf
commit 472a21b2f0
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -0,0 +1,28 @@
import "../../src/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");
});
}
});