mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-23 18:00:00 +00:00
13 lines
351 B
JavaScript
13 lines
351 B
JavaScript
|
import test from "ava";
|
||
|
import capitalize from "../src/Util/Capitalize";
|
||
|
|
||
|
test("capitalize", t => {
|
||
|
t.is(capitalize("hello"), "Hello");
|
||
|
t.is(capitalize("hello world"), "Hello World");
|
||
|
t.is(capitalize("Testing TESTING"), "Testing TESTING");
|
||
|
t.is(
|
||
|
capitalize("Testing TESTING", { lowercaseRestOfWord: true }),
|
||
|
"Testing Testing"
|
||
|
);
|
||
|
});
|