/** * IM客户端单元测试。单元测试编写规则:至少对对每个接口执行正反例测试,若有条件可以增加接口的性能测试。 * * @author sand * @since 2016/12/24 */ "use strict"; var $ = require('jquery'); let assert = require('assert'); let imClient = require('../../src/client/im.client'); // 测试会话用的数据, test data let TD = { MUC: { SessionId: "", Topics: [], DoctorA: "", DoctorB: "", Patient: "" }, P2P: { SessionId: "", DoctorA: { id: "0de7295862dd11e69faffa163e8aee56", token: "0PFWlKmLBN9YzhCfFWVgYA", clientId: "H6FYbDejks6VjMmW3uH7V6", platform: 0 }, DoctorB: "" }, Group: { SessionId: "", DoctorA: "", DoctorB: "", DoctorC: "", DoctorD: "" } }; describe("IM SDK: Application Unit Test", function () { // Application API describe("Application API", function () { describe("get badge no", function () { it("return 200 when with valid user", function (done) { done(); }); }); }); });