mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	test(server/utils): add tests for isMac/isWindows/isElectron
This commit is contained in:
		
							parent
							
								
									81db681732
								
							
						
					
					
						commit
						de5ffb591d
					
				| @ -36,8 +36,6 @@ describe.todo("#fromBase64", () => {}); | ||||
| 
 | ||||
| describe.todo("#hmac", () => {}); | ||||
| 
 | ||||
| describe.todo("#isElectron", () => {}); | ||||
| 
 | ||||
| describe.todo("#hash", () => {}); | ||||
| 
 | ||||
| describe("#isEmptyOrWhitespace", () => { | ||||
| @ -228,10 +226,23 @@ describe("#envToBoolean", () => { | ||||
| 
 | ||||
| describe.todo("#getResourceDir", () => {}); | ||||
| 
 | ||||
| describe.todo("#isMac", () => {}); | ||||
| describe("#isElectron", () => { | ||||
|     it("should export a boolean", () => { | ||||
|         expect(utils.isElectron).toBeTypeOf("boolean"); | ||||
|     }); | ||||
| }); | ||||
| 
 | ||||
| describe.todo("#isWindows", () => {}); | ||||
| describe("#isMac", () => { | ||||
|     it("should export a boolean", () => { | ||||
|         expect(utils.isMac).toBeTypeOf("boolean"); | ||||
|     }); | ||||
| }); | ||||
| 
 | ||||
| describe("#isWindows", () => { | ||||
|     it("should export a boolean", () => { | ||||
|         expect(utils.isWindows).toBeTypeOf("boolean"); | ||||
|     }); | ||||
| }); | ||||
| 
 | ||||
| describe("#formatDownloadTitle", () => { | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Panagiotis Papadopoulos
						Panagiotis Papadopoulos