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

fix linting

上级 d6fe4c44
......@@ -94,9 +94,9 @@ async function onBrowserDead(this: PuppetWeb, e): Promise<void> {
if (/dong/i.test(dong)) {
log.verbose('PuppetWebEvent', 'onBrowserDead() ding() works well after reset')
} else {
const e = new Error('ding() got "' + dong + '", should be "dong" ')
log.warn('PuppetWebEvent', 'onBrowserDead() %s', e.message)
throw e
const err = new Error('ding() got "' + dong + '", should be "dong" ')
log.warn('PuppetWebEvent', 'onBrowserDead() %s', err.message)
throw err
}
} catch (e) {
log.error('PuppetWebEvent', 'onBrowserDead() exception: %s', e.message)
......
......@@ -16,7 +16,7 @@ import StateMonitor from './state-monitor'
test('StateMonitor smoking test', t => {
const sm = new StateMonitor<'A', 'B'>('A')
const sm = new StateMonitor<'A', 'B'>('SmokingTest', 'A')
t.is(sm.current(), 'A', 'current should be A')
t.is(sm.target(), 'A', 'target should be A')
t.true(sm.stable(), 'should be stable')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册