im.client.application.Test.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /**
  2. * IM客户端单元测试。单元测试编写规则:至少对对每个接口执行正反例测试,若有条件可以增加接口的性能测试。
  3. *
  4. * @author sand
  5. * @since 2016/12/24
  6. */
  7. "use strict";
  8. var $ = require('jquery');
  9. let assert = require('assert');
  10. let imClient = require('../../src/client/im.client');
  11. // 测试会话用的数据, test data
  12. let TD = {
  13. MUC: {
  14. SessionId: "",
  15. Topics: [],
  16. DoctorA: "",
  17. DoctorB: "",
  18. Patient: ""
  19. },
  20. P2P: {
  21. SessionId: "",
  22. DoctorA: {
  23. id: "0de7295862dd11e69faffa163e8aee56",
  24. token: "0PFWlKmLBN9YzhCfFWVgYA",
  25. clientId: "H6FYbDejks6VjMmW3uH7V6",
  26. platform: 0
  27. },
  28. DoctorB: ""
  29. },
  30. Group: {
  31. SessionId: "",
  32. DoctorA: "",
  33. DoctorB: "",
  34. DoctorC: "",
  35. DoctorD: ""
  36. }
  37. };
  38. describe("IM SDK: Application Unit Test", function () {
  39. // Application API
  40. describe("Application API", function () {
  41. describe("get badge no", function () {
  42. it("return 200 when with valid user", function (done) {
  43. done();
  44. });
  45. });
  46. });
  47. });