Skip to content

Commit

Permalink
feat(string): add title test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiliuzi8686 committed Dec 10, 2024
1 parent 46a8848 commit a32ed49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tests/string.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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), '')
Expand Down

0 comments on commit a32ed49

Please sign in to comment.