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

code clean

上级 0d67263f
......@@ -54,8 +54,7 @@ export class Wechaty extends EventEmitter implements Sayable {
public puppet: Puppet | null
private state = new StateMonitor<'standby', 'ready'>('Wechaty', 'standby')
private npmVersion: string
private npmVersion: string = require('../package.json').version
public uuid: string
public static instance(setting?: PuppetSetting) {
......@@ -84,8 +83,6 @@ export class Wechaty extends EventEmitter implements Sayable {
: setting.profile + '.wechaty.json'
}
this.npmVersion = require('../package.json').version
this.uuid = UtilLib.guid()
}
......
......@@ -8,18 +8,18 @@
import { test } from 'ava'
import {
Config
, Contact
, FriendRequest
, IoClient
, Message
, Puppet
, PuppetWeb
, Room
, Wechaty
Config,
Contact,
FriendRequest,
IoClient,
Message,
Puppet,
PuppetWeb,
Room,
Wechaty,
, log
, VERSION
log,
VERSION,
} from '../'
test('Wechaty Framework', t => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册