aboutsummaryrefslogtreecommitdiffstats
path: root/test/JsonSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/JsonSpec.js')
-rw-r--r--test/JsonSpec.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/JsonSpec.js b/test/JsonSpec.js
index e6264293..0acbd79c 100644
--- a/test/JsonSpec.js
+++ b/test/JsonSpec.js
@@ -62,9 +62,9 @@ describe('json', function(){
});
it('should serialize UTC dates', function() {
- var date = angular.String.toDate("2009-10-09T01:02:03Z");
- expect(toJson(date)).toEqual('"2009-10-09T01:02:03Z"');
- expect(fromJson('"2009-10-09T01:02:03Z"').getTime()).toEqual(date.getTime());
+ var date = angular.String.toDate("2009-10-09T01:02:03.027Z");
+ expect(toJson(date)).toEqual('"2009-10-09T01:02:03.027Z"');
+ expect(fromJson('"2009-10-09T01:02:03.027Z"').getTime()).toEqual(date.getTime());
});
it('should prevent recursion', function() {