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

fix(process.env): should use `[` instead of `(`! (#582)

上级 244ff29d
......@@ -34,7 +34,7 @@ Raven
release: require('../package.json').version,
tags: {
git_commit: 'c0deb10c4',
platform: !!process.env('WECHATY_DOCKER')
platform: !!process.env['WECHATY_DOCKER']
? 'docker'
: os.platform(),
},
......@@ -165,7 +165,7 @@ Object.assign(config, {
* 4. Envioronment Identify
*/
Object.assign(config, {
dockerMode: !!process.env('WECHATY_DOCKER'),
dockerMode: !!process.env['WECHATY_DOCKER'],
isGlobal: isWechatyInstalledGlobal(),
})
......
......@@ -33,7 +33,6 @@ test.serial('quit()', async t => {
browser.state.target('close')
browser.state.current('close')
t.throws(browser.quit(), Error, 'should throw exception when call quit() twice on browser')
})
test.serial('init()', async t => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册