wechaty-grpc
Version:
gRPC for Wechaty
31 lines (23 loc) • 772 B
text/typescript
import { test } from 'tstest'
import {
grpc,
puppet,
google,
} from './mod.js'
test('`grpc` is exported', async t => {
t.ok(grpc, 'should imported grpc')
})
test('`IPuppetServer` is exported', async t => {
const i: puppet.IPuppetServer = {} as any
t.ok(i, 'should has typing IPuppetServer')
})
test('`PuppetService` is exported', async t => {
t.ok(puppet.PuppetService, 'should export PuppetSevice')
})
test('CJS: HealthCheckResponse', async t => {
t.ok(google.HealthCheckResponse, 'should exists "HealthCheckResponse"')
})
test('CJS: ServingStatus.SERVING', async t => {
t.ok(google.HealthCheckResponse.ServingStatus.SERVING, 'should exists "ServingStatus.SERVING"')
})