wechaty-grpc
Version:
gRPC for Wechaty
25 lines • 1.06 kB
JavaScript
import { test } from 'tstest';
import { codeRoot, puppet, google, } from './cjs.js';
test('ESM: codeRoot', async (t) => {
t.ok(codeRoot, 'should exists "codeRoot"');
});
test('ESM: puppet', async (t) => {
t.ok(puppet, 'should exists "puppet"');
t.ok(puppet.EventRequest, 'should exists "EventRequest"');
});
test('ESM: puppet.EventTypeMap', async (t) => {
const map = {};
map.EVENT_TYPE_DIRTY = puppet.EventType.EVENT_TYPE_DIRTY;
t.equal(Object.keys(map).length, 1, 'should export type "EventTypeMap"');
});
test('ESM: puppet.DingRequest', async (t) => {
t.equal(typeof puppet.DingRequest, 'function', 'should exists "DingRequest"');
});
test('ESM: google.HealthCheckResponse', async (t) => {
t.ok(google.HealthCheckResponse, 'should exists "HealthCheckResponse"');
});
test('ESM: google.ServingStatus.SERVING', async (t) => {
t.ok(google.HealthCheckResponse.ServingStatus.SERVING, 'should exists "ServingStatus.SERVING"');
});
//# sourceMappingURL=cjs.spec.js.map