fix(core): update
This commit is contained in:
		
							
								
								
									
										14
									
								
								test/test.ts
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								test/test.ts
									
									
									
									
									
								
							| @@ -1,4 +1,4 @@ | ||||
| import { tap, expect } from 'tapbundle'; | ||||
| import { tap, expect } from '@pushrocks/tapbundle'; | ||||
|  | ||||
| import * as smartacme from '../ts/index'; | ||||
|  | ||||
| @@ -6,8 +6,16 @@ let smartAcmeInstance: smartacme.SmartAcme; | ||||
|  | ||||
| tap.test('should create a valid instance of SmartAcme', async () => { | ||||
|   smartAcmeInstance = new smartacme.SmartAcme(); | ||||
|   await smartAcmeInstance.init(); | ||||
|   console.log(smartAcmeInstance.directoryUrls); | ||||
|   await smartAcmeInstance.init({ | ||||
|     accountEmail: 'domains@lossless.org', | ||||
|     accountPrivateKey: null, | ||||
|     removeChallenge: async (...args) => { | ||||
|       console.log(args); | ||||
|     }, | ||||
|     setChallenge: async (...args) => { | ||||
|       console.log(args); | ||||
|     }  | ||||
|   }); | ||||
|   await smartAcmeInstance.getCertificateForDomain('bleu.de'); | ||||
| }); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user