Test cleanup and fixes [c-d]
This commit is contained in:
@ -5,7 +5,13 @@ const fromCamelCase = require('./fromCamelCase.js');
|
||||
test('fromCamelCase is a Function', () => {
|
||||
expect(fromCamelCase).toBeInstanceOf(Function);
|
||||
});
|
||||
t.equal(fromCamelCase('someDatabaseFieldName', ' '), 'some database field name', "Converts a string from camelcase");
|
||||
t.equal(fromCamelCase('someLabelThatNeedsToBeCamelized', '-'), 'some-label-that-needs-to-be-camelized', "Converts a string from camelcase");
|
||||
t.equal(fromCamelCase('someJavascriptProperty', '_'), 'some_javascript_property', "Converts a string from camelcase");
|
||||
test('Converts a string from camelcase', () => {
|
||||
expect(fromCamelCase('someDatabaseFieldName', ' ')).toBe('some database field name')
|
||||
});
|
||||
test('Converts a string from camelcase', () => {
|
||||
expect(fromCamelCase('someLabelThatNeedsToBeCamelized', '-')).toBe('some-label-that-needs-to-be-camelized')
|
||||
});
|
||||
test('Converts a string from camelcase', () => {
|
||||
expect(fromCamelCase('someJavascriptProperty', '_')).toBe('some_javascript_property')
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user