This commit is contained in:
Tom Moor
2018-06-03 22:25:40 -04:00
parent 133aa05bd8
commit 0adb8814dd

View File

@ -10,8 +10,9 @@ it('should extract first title', () => {
});
it('should remove escape characters', () => {
expect(parseTitle(`# Thing \- one`).title).toBe('Thing - one');
expect(parseTitle(`# \[wip\] Title`).title).toBe('[wip] Title');
expect(parseTitle(`# Thing \\- one`).title).toBe('Thing - one');
expect(parseTitle(`# \\[wip\\] Title`).title).toBe('[wip] Title');
expect(parseTitle(`# \\> Title`).title).toBe('> Title');
});
it('should parse emoji if first character', () => {