Skip to content

Commit 8935ee7

Browse files
committed
fix: test
1 parent 89bc7e8 commit 8935ee7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
describe('Filter tests', function() {
2+
// Test copy from https://github.com/Jermolene/TiddlyWiki5/blob/31ec1bdd50ce7fa58e4e2c8701106bd809c47dc3/editions/test/tiddlers/tests/test-filters.js
3+
it('should parse new-style rich operator suffixes', function() {
4+
expect($tw.wiki.parseFilter('[search:: four, , five,, six [operand]]')).toEqual(
5+
[{ prefix: '', operators: [{ operator: 'search', suffix: ': four, , five,, six ', suffixes: [[], ['four', 'five', 'six']], operands: [{ text: 'operand' }] }] }],
6+
);
7+
});
8+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
title: tests/example/test-filters.js
2+
type: application/javascript
3+
tags: $:/tags/test-spec

0 commit comments

Comments
 (0)