Skip to content

Commit cac0fdb

Browse files
committed
tests for 👍 and 👎
1 parent 04f73d7 commit cac0fdb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/index.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ test('renders emoji nested inside emphasis', () => {
3636
expect(render('**:smile:**')).toBe(`<p><strong>${smile}</strong></p>`);
3737
});
3838

39+
test('renders shortcodes containing + and -', () => {
40+
expect(render(':+1: :-1:')).toBe(`<p>${dict['+1']} ${dict['-1']}</p>`);
41+
});
42+
3943
test('leaves an unknown shortcode untouched', () => {
4044
expect(render(':definitely_not_an_emoji_xyz:')).toBe('<p>:definitely_not_an_emoji_xyz:</p>');
4145
});

0 commit comments

Comments
 (0)