Created
June 28, 2018 13:36
-
-
Save shierro/951018d9ad123824c1f4360501e2c04f to your computer and use it in GitHub Desktop.
main.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
VerifySingleton, | |
VerifyFactory, | |
} = require('./verify'); | |
const factory = new VerifyFactory(); | |
const run = async () => { | |
try { | |
const result = await VerifySingleton.testFunc(); | |
console.log('result', result); | |
const staticResult = await VerifyFactory.staticTestFunc(); | |
console.log('result', result); | |
} catch (e) { | |
console.log('catched?', e); | |
} | |
}; | |
run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment