浏览代码

testing timeing format convert function.

master
Patrick Peng Sun 8 年前
父节点
当前提交
bb7ff3f74c
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      crmEntitySubscribe_test.go

+ 5
- 0
crmEntitySubscribe_test.go 查看文件

@@ -52,4 +52,9 @@ func TestDecodeSubscribed(t *testing.T) {
AssertEqual(t, e.TeamsIDs[1], "59589145af954bc38", "")
AssertEqual(t, e.TeamsNames["5958913a2479166db"], "testteam1", "")
AssertEqual(t, e.TeamsNames["59589145af954bc38"], "testteam2", "")

//test createAt function
AssertEqual(t, e.getCreatedAt().Format(getCrmTimeLayout()), e.CreatedAt, "time formating should be correct")
AssertEqual(t, e.getModifiedAt().Format(getCrmTimeLayout()), e.ModifiedAt, "time formating should be correct")

}

正在加载...
取消
保存