wechaty-grpc
Version:
gRPC for Wechaty
20 lines (14 loc) • 544 B
text/typescript
import { test } from 'tstest'
import puppet from './puppet.cjs'
test('CJS: EventRequest', async t => {
t.ok(puppet.EventRequest, 'should export EventRequest')
})
test('CJS: PuppetService', async t => {
t.ok(puppet.PuppetService, 'should export PuppetSevice')
})
test('CJS: EventTypeMap', async t => {
const map: puppet.EventTypeMap = {} as any
map.EVENT_TYPE_DIRTY = puppet.EventType.EVENT_TYPE_DIRTY
t.equal(Object.keys(map).length, 1, 'should export type EventTypeMap')
})