From e95afb3aab9d3cfdde4dc04f64bdb6d8a845bce3 Mon Sep 17 00:00:00 2001 From: Mehdi Lahlou Date: Sun, 23 Dec 2018 15:52:49 +0100 Subject: [PATCH] chore(tests): add empty heading test to avoid possible regression --- src/__tests__/anchor.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/__tests__/anchor.js b/src/__tests__/anchor.js index 0e242fe..faecfcc 100644 --- a/src/__tests__/anchor.js +++ b/src/__tests__/anchor.js @@ -63,18 +63,12 @@ test("markdown-it-toc-and-anchor anchor", t => { t.is( mdIt( `@[toc] -# Heading`, - { - anchorLink: true, - anchorClassName: "anchor", - anchorLinkSymbol: "", - anchorLinkSymbolClassName: "octicon octicon-link", - anchorLinkSpace: false - } +# `, + {} ), `

-

` + - 'Heading

\n', +

+`, "should support empty heading" ); });