im.client.health.Test.js 851 B

12345678910111213141516171819202122232425262728293031
  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. describe("IM SDK: health Unit Test", function () {
  12. // 健康API
  13. describe("Health API", function () {
  14. describe("health", function () {
  15. it("return 200 when system is all right", function (done) {
  16. done();
  17. });
  18. });
  19. });
  20. // 管理API
  21. describe("Management API", function () {
  22. describe("db_status", function () {
  23. it("return 200 while database is ok", function (done) {
  24. done();
  25. });
  26. });
  27. });
  28. });