Skip to content

Commit

Permalink
clean config settings to name specified puppet (#1496)
Browse files Browse the repository at this point in the history
  • Loading branch information
huan committed Jul 19, 2019
1 parent 1f58a1d commit 0cabf4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions src/puppet-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/puppet-manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down

0 comments on commit 0cabf4d

Please sign in to comment.