提交 61d82006 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

clean(code): remove redundancy code from issue #70

上级 8f7aa5b8
......@@ -80,10 +80,3 @@ test('isDocker', t => {
}
})
/**
* issue #70 https://github.com/wechaty/wechaty/issues/70#issuecomment-258676376
*/
test('Module Singleton', t => {
t.is(global['WECHATY_CONFIG_INSTANCE_COUNTER'], 1, 'should only load module for one time')
})
......@@ -226,14 +226,6 @@ export interface Sleepable {
*/
process.env['SELENIUM_PROMISE_MANAGER'] = 0
/**
* to count how many times this piece of code is instanciaed
*/
if (!global['WECHATY_CONFIG_INSTANCE_COUNTER']) {
global['WECHATY_CONFIG_INSTANCE_COUNTER'] = 0
}
global['WECHATY_CONFIG_INSTANCE_COUNTER']++
export {
log,
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册