1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-04-22 02:33:17 +00:00

test: should have a backlink to block mark

This commit is contained in:
lin onetwo 2024-10-04 00:27:53 +08:00
parent b9d861e3a1
commit 9b46d7153a

View File

@ -47,6 +47,17 @@ describe('Backlinks tests', function() {
it('should have a backlink', function() {
expect(wiki.filterTiddlers('TestIncoming +[backlinks[]]').join(',')).toBe('TestOutgoing');
it("should have a backlink to block mark", function() {
wiki.addTiddler({
title: "TestIncoming",
text: "With a mark. ^ToThisBlock",
});
wiki.addTiddler({
title: "TestOutgoing",
text: "A link to [[TestIncoming^ToThisBlock]]",
});
expect(wiki.filterTiddlers("TestIncoming +[backlinks[]]").join(",")).toBe("TestOutgoing");
});
});