1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-04 14:30:28 +00:00

Update test-wikitext.js

This commit is contained in:
lin onetwo 2024-10-04 00:59:54 +08:00
parent 64def0bde8
commit ba63ea2a7d

View File

@ -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('<p>A link to <a class="tc-tiddlylink tc-tiddlylink-resolves" href="#TiddlerFive">TiddlerFive</a></p>' );
var tiddler = wiki.getTiddler("TiddlerFive");
wiki.deleteTiddler("TiddlerFive");
expect(wiki.renderText("text/html","text/vnd-tiddlywiki","A link to [[TiddlerFive]]")).toBe('<p>A link to <a class="tc-tiddlylink tc-tiddlylink-missing" href="#TiddlerFive">TiddlerFive</a></p>');
wiki.addTiddler(tiddler);
});
it("handles block mark wikitext notation", function() {
expect(wiki.renderText("text/html","text/vnd-tiddlywiki","Link to section [[TiddlerFive^markID]]")).toBe('<p>Link to section <a class="tc-tiddlylink tc-tiddlylink-resolves" href="#TiddlerFive-markID">TiddlerFive</a></p>' );