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:
parent
b9d861e3a1
commit
9b46d7153a
@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user