Fix for minor transclude wikimethod issue (#8382)

This commit is contained in:
Cameron Fischer
2024-07-15 11:38:27 -04:00
committed by GitHub
parent da697f1a5b
commit a3a9fd3931
2 changed files with 31 additions and 11 deletions

View File

@@ -220,6 +220,22 @@ describe('Backtranscludes and transclude filter tests', function() {
});
});
describe('exclude self when target tiddler is not string', function() {
var wiki = new $tw.Wiki();
wiki.addTiddler({
title: 'TestOutgoing',
text: "<$transclude $tiddler={{TestOutgoing!!title}} $field='created'/> and <$transclude tiddler={{TestOutgoing!!title}} field='created'/>"});
it('should have no transclude', function() {
expect(wiki.filterTiddlers('TestOutgoing +[transcludes[]]').join(',')).toBe('');
});
it('should have no back transcludes', function() {
expect(wiki.filterTiddlers('TestOutgoing +[backtranscludes[]]').join(',')).toBe('');
});
});
describe('recognize transclusion defined by widget', function() {
var wiki = new $tw.Wiki();