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

fix static VERSION property

上级 99805c42
......@@ -62,6 +62,10 @@ test('Export of the Framework', async t => {
t.ok(log, 'should export log')
})
test('static VERSION', async t => {
t.true('VERSION' in Wechaty, 'Wechaty should has a static VERSION property')
})
test('Config setting', async t => {
t.ok(config, 'should export Config')
// t.ok(config.default.DEFAULT_PUPPET , 'should has DEFAULT_PUPPET')
......
......@@ -136,7 +136,7 @@ const PUPPET_MEMORY_NAME = 'puppet'
*/
export class Wechaty extends Accessory implements Sayable {
public readonly VERSION = VERSION
public static readonly VERSION = VERSION
public readonly state : StateSwitch
private readonly readyState : StateSwitch
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册