Skip to content

Commit b11cc4e

Browse files
edusperonielena-p
authored andcommitted
chore: fix date test when GMT is negative (#2063)
1 parent 0402d1b commit b11cc4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: tests/app/tests/value-accessor-tests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe("two-way binding via ng-model", () => {
111111
let diff = Math.abs(accessor.view.date.getTime() - defaultDate.getTime());
112112
assert.isTrue(diff < 1000, "setting null should reset the value");
113113

114-
accessor.writeValue("2010-03-17");
114+
accessor.writeValue("2010/03/17");
115115
assert.equal(formatDate(new Date(2010, 2, 17)), formatDate(accessor.view.date));
116116

117117
accessor.writeValue(null);

0 commit comments

Comments
 (0)