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

Make comment clear and fix a unit test typo

上级 792e1260
......@@ -6,7 +6,11 @@ export const PUPPET_DEPENDENCIES = {
'mock' : '0.0.0', // compatible with v0.18, will be replaced with wechaty-puppet-padchat
'padchat' : '0.0.0', // compatible with v0.18, will be replaced with wechaty-puppet-padchat
'padpro' : '0.0.0',
/////////////////////////////////////
/////////////////////////////////////////////////////////////
// The Above is Alias for the following full NPM module names
/////////////////////////////////////////////////////////////
// 'wechaty-puppet-hostie' : '^0.0.1',
'wechaty-puppet-ioscat' : '^0.5.19', // https://www.npmjs.com/package/wechaty-puppet-ioscat
'wechaty-puppet-mock' : '^0.14.1', // https://www.npmjs.com/package/wechaty-puppet-mock
......
......@@ -30,14 +30,14 @@ test('resolve an unsupported puppet name', async t => {
await PuppetManager.resolve('fasdfsfasfsfdfs' as any)
t.fail('should reject')
} catch (e) {
t.ok('reject when options is a string')
t.pass('reject when options is a string: ' + e)
}
try {
await PuppetManager.resolve({ puppet: 'fadfdsafa' as any })
t.fail('should reject')
} catch (e) {
t.ok('reject when options.puppet is unknown')
t.pass('reject when options.puppet is unknown: ' + e)
}
try {
......
......@@ -97,6 +97,7 @@ export class PuppetManager {
].join('\n')
)
}
// PuppetName is valid
break
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册