Correct datetime value in label test
This commit is contained in:
parent
94633ba65c
commit
c9bfb82619
1 changed files with 2 additions and 2 deletions
|
@ -55,11 +55,11 @@ describe("model/label", () => {
|
|||
});
|
||||
|
||||
it("should get date string", () => {
|
||||
const t = "2009-11-17 20:34:58.651387237 +0000 UTC";
|
||||
const t = "2012-07-08 14:45:39";
|
||||
const values = {ID: 5, LabelName: "Black Cat", LabelSlug: "black-cat", CreatedAt: t};
|
||||
const label = new Label(values);
|
||||
const result = label.getDateString();
|
||||
assert.equal(result, "November 17, 2009 8:34 PM");
|
||||
assert.equal(result, "July 8, 2012 2:45 PM");
|
||||
});
|
||||
|
||||
it("should get model name", () => {
|
||||
|
|
Loading…
Reference in a new issue