diff --git a/crmEntitySubscribe_test.go b/crmEntitySubscribe_test.go index f6628d6..ca03cb7 100644 --- a/crmEntitySubscribe_test.go +++ b/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") + }