You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
551 B
17 lines
551 B
import * as util from './util';
|
|
|
|
describe('Utils', () => {
|
|
describe('formatEmojiName', () => {
|
|
test('should format a dash-separated name', () => {
|
|
expect(util.formatEmojiName('foo-bar-baz')).toEqual('Foo bar baz');
|
|
});
|
|
|
|
test('should format an underscore-separated name', () => {
|
|
expect(util.formatEmojiName('foo_bar_baz')).toEqual('Foo bar baz');
|
|
});
|
|
|
|
test('should format a name separated by dashes and underscores', () => {
|
|
expect(util.formatEmojiName('foo_bar-baz')).toEqual('Foo bar baz');
|
|
});
|
|
});
|
|
});
|
|
|