feat: add common-utils (#2374)

This commit is contained in:
Henry Wang
2019-06-12 04:09:27 +01:00
committed by DIYgod
parent 07ce725bf4
commit 4531de80f9
4 changed files with 35 additions and 16 deletions

View File

@@ -0,0 +1,7 @@
const utils = require('../../lib/utils/common-utils');
describe('common-utils', () => {
it('toTitleCase', async () => {
expect(utils.toTitleCase('RSSHub IS AS aweSOme aS henry')).toBe('Rsshub Is As Awesome As Henry');
});
});