Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import snarkdown from '../src';

describe('snarkdown()', () => {
describe('text formatting', () => {
it('parses strikethrough with ~~', () => {
expect(snarkdown('I ~~like~~ tiny libraries')).to.equal('I <s>like</s> tiny libraries');
});

it('parses bold with **', () => {
expect(snarkdown('I **like** tiny libraries')).to.equal('I <strong>like</strong> tiny libraries');
});
Expand Down