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

fix & clean unit test

上级 6f814303
......@@ -16,14 +16,14 @@ test('Puppet Web watchdog timer', function(t) {
t.ok(pw, 'should instantiate a PuppetWeb')
co(function* () {
yield pw.initBrowser()
t.pass('should init the browser')
yield pw.initBridge()
t.pass('should init the bridge')
// pw.browser = yield pw.initBrowser()
// t.ok(pw.browser, 'should init the browser')
// pw.bridge = yield pw.initBridge()
// t.ok(pw.bridge, 'should init the bridge')
yield pw.bridge.quit().catch(e => {/* fail safe */})
yield pw.browser.quit().catch(e => {/* fail safe */})
t.pass('should kill both browser & bridge')
// yield pw.bridge.quit().catch(e => {/* fail safe */})
// yield pw.browser.quit().catch(e => {/* fail safe */})
// t.pass('should kill both browser & bridge')
let errorCounter = 0
pw.once('error', e => errorCounter = 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册