Clarify test names

This commit is contained in:
Luke Barnard 2017-06-30 12:56:19 +01:00
parent 80a73a50f5
commit 030358e764

View File

@ -109,7 +109,7 @@ describe('MessageComposerInput', () => {
expect(spy.args[0][1]).toEqual('a');
});
it('should send emoji messages in rich text', () => {
it('should send emoji messages when rich text is enabled', () => {
const spy = sinon.spy(client, 'sendTextMessage');
mci.enableRichtext(true);
addTextToDraft('☹');
@ -118,7 +118,7 @@ describe('MessageComposerInput', () => {
expect(spy.calledOnce).toEqual(true, 'should send message');
});
it('should send emoji messages in Markdown', () => {
it('should send emoji messages when Markdown is enabled', () => {
const spy = sinon.spy(client, 'sendTextMessage');
mci.enableRichtext(false);
addTextToDraft('☹');