Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Dec 30, 2024
1 parent 89bc7e8 commit 8935ee7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wiki/tiddlers/tests/example/filters.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
describe('Filter tests', function() {
// Test copy from https://github.com/Jermolene/TiddlyWiki5/blob/31ec1bdd50ce7fa58e4e2c8701106bd809c47dc3/editions/test/tiddlers/tests/test-filters.js
it('should parse new-style rich operator suffixes', function() {
expect($tw.wiki.parseFilter('[search:: four, , five,, six [operand]]')).toEqual(
[{ prefix: '', operators: [{ operator: 'search', suffix: ': four, , five,, six ', suffixes: [[], ['four', 'five', 'six']], operands: [{ text: 'operand' }] }] }],
);
});
});
3 changes: 3 additions & 0 deletions wiki/tiddlers/tests/example/filters.js.meta
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: tests/example/test-filters.js
type: application/javascript
tags: $:/tags/test-spec

0 comments on commit 8935ee7

Please sign in to comment.