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

clean config settings to name specified puppet (#1496)

上级 1f58a1dd
......@@ -2,16 +2,17 @@
* Wechaty Official Puppet Implementations List
*/
export const PUPPET_DEPENDENCIES = {
'default' : '0.0.0', // will be replaced with PUPPET_DEFAULT
'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',
// 'default' : '0.0.0', // will be replaced with PUPPET_DEFAULT
// '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.15.5', // https://www.npmjs.com/package/wechaty-puppet-mock
'wechaty-puppet-padchat' : '^0.18.1', // https://www.npmjs.com/package/wechaty-puppet-padchat
......
......@@ -41,8 +41,8 @@ test('resolve an unsupported puppet name', async t => {
}
try {
await PuppetManager.resolve({ puppet: 'mock' })
t.pass('should allow "mock" as puppet name')
await PuppetManager.resolve({ puppet: 'wechaty-puppet-mock' })
t.pass('should allow "wechaty-puppet-mock" as puppet name')
} catch (e) {
t.fail('should pass "mock" as puppet name')
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册