mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 21:19:01 +01:00 
			
		
		
		
	test(server/utils): add basic test for deferred
this needs to be expanded, but I don't fully understand what the exact purpose is of this deferred fn
This commit is contained in:
		
							parent
							
								
									e1795a0ad1
								
							
						
					
					
						commit
						4917296d96
					
				@ -381,7 +381,13 @@ describe("#timeLimit", () => {
 | 
			
		||||
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
describe.todo("#deferred", () => {});
 | 
			
		||||
describe("#deferred", () => {
 | 
			
		||||
    it("should return a promise", () => {
 | 
			
		||||
        const result = utils.deferred();
 | 
			
		||||
        expect(result).toBeInstanceOf(Promise)
 | 
			
		||||
    })
 | 
			
		||||
    // TriliumNextTODO: Add further tests!
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
describe("#removeDiacritic", () => {
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user