From cc2b0ba05da9221ef632e65bfeeb0176e7c38f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Feje=C5=A1?= Date: Wed, 10 Jan 2018 12:40:56 +0100 Subject: [PATCH] add test for toCamelCase --- test/toCamelCase/toCamelCase.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/toCamelCase/toCamelCase.test.js b/test/toCamelCase/toCamelCase.test.js index 93455f442..8746a2bf3 100644 --- a/test/toCamelCase/toCamelCase.test.js +++ b/test/toCamelCase/toCamelCase.test.js @@ -5,6 +5,10 @@ test('Testing toCamelCase', (t) => { //For more information on all the methods supported by tape //Please go to https://github.com/substack/tape t.true(typeof toCamelCase === 'function', 'toCamelCase is a Function'); + t.equal(toCamelCase('some_database_field_name'), 'someDatabaseFieldName', "Converts a string to camelCase"); + t.equal(toCamelCase('Some label that needs to be camelized'), 'someLabelThatNeedsToBeCamelized', "Converts a string to camelCase"); + t.equal(toCamelCase('some-javascript-property'), 'someJavascriptProperty', "Converts a string to camelCase"); + t.equal(toCamelCase('some-mixed_string with spaces_underscores-and-hyphens'), 'someMixedStringWithSpacesUnderscoresAndHyphens', "Converts a string to camelCase"); //t.deepEqual(toCamelCase(args..), 'Expected'); //t.equal(toCamelCase(args..), 'Expected'); //t.false(toCamelCase(args..), 'Expected');