Skip to content

Commit efb335d

Browse files
committed
test for _.camelize
1 parent d7e40b5 commit efb335d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/unit/specs/util/lang_spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ describe('Util - Language Enhancement', function () {
2424
expect(_.stripQuotes("'fff")).toBe(false)
2525
})
2626

27+
it('camelize', function () {
28+
expect(_.camelize('abc')).toBe('Abc')
29+
expect(_.camelize('some-long-name')).toBe('SomeLongName')
30+
expect(_.camelize('what_about_this')).toBe('WhatAboutThis')
31+
})
32+
2733
it('bind', function () {
2834
var original = function (a) {
2935
return this.a + a

0 commit comments

Comments
 (0)