From a32ed49153bf8c2dc1c69d09e99433a57baf9b17 Mon Sep 17 00:00:00 2001 From: "yuting2.liu" Date: Tue, 10 Dec 2024 16:50:15 +0800 Subject: [PATCH] feat(string): add title test --- src/tests/string.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tests/string.test.ts b/src/tests/string.test.ts index c9bdc9e2..c4c298df 100644 --- a/src/tests/string.test.ts +++ b/src/tests/string.test.ts @@ -174,6 +174,8 @@ describe('string module', () => { _.title('queryAllItems-in_Database'), 'Query All Items In Database' ) + assert.equal(_.title('ABC'), 'Abc') + assert.equal(_.title('ABC_content'), 'Abc Content') }) test('returns empty string for bad input', () => { assert.equal(_.title(null), '')