12345678910111213141516171819202122232425262728293031 |
- /**
- * IM客户端单元测试。单元测试编写规则:至少对对每个接口执行正反例测试,若有条件可以增加接口的性能测试。
- *
- * @author sand
- * @since 2016/12/24
- */
- "use strict";
- var $ = require('jquery');
- let assert = require('assert');
- let imClient = require('../../src/client/im.client');
- describe("IM SDK: health Unit Test", function () {
- // 健康API
- describe("Health API", function () {
- describe("health", function () {
- it("return 200 when system is all right", function (done) {
- done();
- });
- });
- });
- // 管理API
- describe("Management API", function () {
- describe("db_status", function () {
- it("return 200 while database is ok", function (done) {
- done();
- });
- });
- });
- });
|