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

code clean

上级 32abf93d
......@@ -13,7 +13,7 @@ const By = WebDriver.By
const PuppetWebBrowser = require('../src/puppet-web/browser')
const PuppetWebBridge = require('../src/puppet-web/bridge')
test('WebDriver process create & quit test', function(t) {
test('WebDriver process create & quit test', t => {
co(function* () {
const b = new PuppetWebBrowser()
t.ok(b, 'should instanciate a browser')
......@@ -34,7 +34,7 @@ test('WebDriver process create & quit test', function(t) {
pids = yield b.getBrowserPids()
t.equal(pids.length, 0, 'no driver process after quit')
})
.catch(e => { t.fail(e) })
.catch(e => t.fail(e))
.then(_ => t.end())
return
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册