Files
DefinitelyTyped/sentence-case/sentence-case-tests.ts
2016-04-27 21:53:46 -07:00

13 lines
476 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import sentenceCase = require('sentence-case');
console.log(sentenceCase(null)); // => ""
console.log(sentenceCase('string')); // => "stringe"
console.log(sentenceCase('dot.case')); // => "dot case"
console.log(sentenceCase('camelCase')); // => "camel case"
console.log(sentenceCase('Beyoncé Knowles')); // => "beyoncé knowles"
console.log(sentenceCase('A STRING', 'tr')); // => "a strıng"
console.log(sentenceCase('HELLO WORLD!', null, '_')); // => "hello_world"