mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
		
			330 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			330 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
|  | const parser = require('../src/services/search/parser'); | ||
|  | 
 | ||
|  | describe("Parser", () => { | ||
|  |     it("fulltext parser without content", () => { | ||
|  |         const exps = parser(["hello", "hi"], [], false); | ||
|  | 
 | ||
|  |         expect(exps.constructor.name).toEqual("NoteCacheFulltextExp"); | ||
|  |         expect(exps.tokens).toEqual(["hello", "hi"]); | ||
|  |     }); | ||
|  | }); |