Test cleanup and fixes [a-b]
This commit is contained in:
@ -9,7 +9,9 @@ const toKebabCase = require('./toKebabCase.js');
|
||||
t.equal(toKebabCase('some text'), 'some-text', "toKebabCase('some text') returns some-text");
|
||||
t.equal(toKebabCase('some-mixed-string With spaces-underscores-and-hyphens'), 'some-mixed-string-with-spaces-underscores-and-hyphens', "toKebabCase('some-mixed-string With spaces-underscores-and-hyphens') returns some-mixed-string-with-spaces-underscores-and-hyphens");
|
||||
t.equal(toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML'), 'i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html', "toKebabCase('IAmListeningToFMWhileLoadingDifferentURLOnMyBrowserAndAlsoEditingSomeXMLAndHTML') returns i-am-listening-to-fm-while-loading-different-url-on-my-browser-and-also-editing-some-xml-and-html");
|
||||
t.equal(toKebabCase(), undefined, 'toKebabCase() return undefined');
|
||||
test('toKebabCase() return undefined', () => {
|
||||
expect(toKebabCase(), undefined).toBe()
|
||||
});
|
||||
t.throws(() => toKebabCase([]), 'toKebabCase([]) throws an error');
|
||||
t.throws(() => toKebabCase({}), 'toKebabCase({}) throws an error');
|
||||
t.throws(() => toKebabCase(123), 'toKebabCase(123) throws an error');
|
||||
|
||||
Reference in New Issue
Block a user