UNPKG

wechaty-grpc

Version:
27 lines 1.27 kB
#!/usr/bin/env -S node --no-warnings --loader ts-node/esm "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tstest_1 = require("tstest"); const cjs_js_1 = require("./cjs.js"); (0, tstest_1.test)('ESM: codeRoot', async (t) => { t.ok(cjs_js_1.codeRoot, 'should exists "codeRoot"'); }); (0, tstest_1.test)('ESM: puppet', async (t) => { t.ok(cjs_js_1.puppet, 'should exists "puppet"'); t.ok(cjs_js_1.puppet.EventRequest, 'should exists "EventRequest"'); }); (0, tstest_1.test)('ESM: puppet.EventTypeMap', async (t) => { const map = {}; map.EVENT_TYPE_DIRTY = cjs_js_1.puppet.EventType.EVENT_TYPE_DIRTY; t.equal(Object.keys(map).length, 1, 'should export type "EventTypeMap"'); }); (0, tstest_1.test)('ESM: puppet.DingRequest', async (t) => { t.equal(typeof cjs_js_1.puppet.DingRequest, 'function', 'should exists "DingRequest"'); }); (0, tstest_1.test)('ESM: google.HealthCheckResponse', async (t) => { t.ok(cjs_js_1.google.HealthCheckResponse, 'should exists "HealthCheckResponse"'); }); (0, tstest_1.test)('ESM: google.ServingStatus.SERVING', async (t) => { t.ok(cjs_js_1.google.HealthCheckResponse.ServingStatus.SERVING, 'should exists "ServingStatus.SERVING"'); }); //# sourceMappingURL=cjs.spec.js.map