wechaty-puppet-service
Version:
Puppet Service for Wechaty
19 lines • 743 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const tstest_1 = require("tstest");
const grpc_manager_js_1 = require("./grpc-manager.js");
/**
* Huan(202108):
* the Server Name Identifier (SNI) in the token
* is required by the gRPC client.
*/
(0, tstest_1.test)('GrpcManager smoke testing', async (t) => {
t.throws(() => new grpc_manager_js_1.GrpcManager({
token: 'UUIDv4',
}), 'should throw if there is no SNI prefix in token');
t.doesNotThrow(() => new grpc_manager_js_1.GrpcManager({
token: 'SNI_UUIDv4',
}), 'should not throw if there is SNI prefix in token');
});
//# sourceMappingURL=grpc-manager.spec.js.map
;