From ba63ea2a7d1b6e2c7ab2f8c5259420d3447e548b Mon Sep 17 00:00:00 2001 From: lin onetwo Date: Fri, 4 Oct 2024 00:59:54 +0800 Subject: [PATCH] Update test-wikitext.js --- editions/test/tiddlers/tests/test-wikitext.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editions/test/tiddlers/tests/test-wikitext.js b/editions/test/tiddlers/tests/test-wikitext.js index 3c5e4b311..3cdc5cc07 100644 --- a/editions/test/tiddlers/tests/test-wikitext.js +++ b/editions/test/tiddlers/tests/test-wikitext.js @@ -72,8 +72,10 @@ describe("WikiText tests", function() { }); it("handles link wikitext notation", function() { expect(wiki.renderText("text/html","text/vnd-tiddlywiki","A link to [[TiddlerFive]]")).toBe('

A link to TiddlerFive

' ); + var tiddler = wiki.getTiddler("TiddlerFive"); wiki.deleteTiddler("TiddlerFive"); expect(wiki.renderText("text/html","text/vnd-tiddlywiki","A link to [[TiddlerFive]]")).toBe('

A link to TiddlerFive

'); + wiki.addTiddler(tiddler); }); it("handles block mark wikitext notation", function() { expect(wiki.renderText("text/html","text/vnd-tiddlywiki","Link to section [[TiddlerFive^markID]]")).toBe('

Link to section TiddlerFive

' );