Skip to content

Commit afe2425

Browse files
committed
Add test for strikethrough
Closes #100
1 parent a6dc55c commit afe2425

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import snarkdown from '../src';
33

44
describe('snarkdown()', () => {
55
describe('text formatting', () => {
6+
it('parses strikethrough with ~~', () => {
7+
expect(snarkdown('I ~~like~~ tiny libraries')).to.equal('I <s>like</s> tiny libraries');
8+
});
9+
610
it('parses bold with **', () => {
711
expect(snarkdown('I **like** tiny libraries')).to.equal('I <strong>like</strong> tiny libraries');
812
});

0 commit comments

Comments
 (0)