Adjust _.camelCase, _.kebabCase and _.snakeCase doc examples and tests.

This commit is contained in:
John-David Dalton
2014-03-23 14:37:03 -07:00
parent de70ef1ef6
commit 60aeba732d
2 changed files with 8 additions and 10 deletions

View File

@@ -1019,11 +1019,9 @@
'd', 'n', 'o', 'o', 'o', 'o', 'o', '', 'o', 'u', 'u', 'u', 'u', 'y', 'th', 'y'
];
test('`_.' + methodName + '` should convert `string` to ' + caseName + ' case', 3, function() {
_.forEach(['Hello world', 'helloWorld', 'hello-world', 'hello_world'], function(string) {
if (string != expected) {
equal(func(string), expected);
}
test('`_.' + methodName + '` should convert `string` to ' + caseName + ' case', 4, function() {
_.forEach(['Hello world', 'helloWorld', '--hello-world', '__hello_world__'], function(string) {
equal(func(string), expected);
});
});