diff options
| author | Igor Minar | 2010-11-06 23:40:44 -0700 |
|---|---|---|
| committer | Igor Minar | 2010-11-08 22:46:41 -0800 |
| commit | a3976455379cef41345a04bc91cfcf6d848aa609 (patch) | |
| tree | 85ef1667a3e65d176d6f233835f1e0cc12b61a23 /test | |
| parent | f077649f48b2ad6f6dde42a2e425cf0d6066a820 (diff) | |
| download | angular.js-a3976455379cef41345a04bc91cfcf6d848aa609.tar.bz2 | |
date filter should accept ISO 8601 formatted string as input
Closes #125
Diffstat (limited to 'test')
| -rw-r--r-- | test/FiltersSpec.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/FiltersSpec.js b/test/FiltersSpec.js index 0de7b5b7..ba66e0b3 100644 --- a/test/FiltersSpec.js +++ b/test/FiltersSpec.js @@ -128,5 +128,11 @@ describe('filter', function(){ expect(filter.date(noon, "yyyy-MM-dd hh=HH:mm:ssaZ")). toEqual('2010-09-03 12=12:05:08pm0500'); }); + + it('should be able to parse ISO 8601 dates/times using', function() { + var isoString = '2010-09-03T05:05:08Z'; + expect(filter.date(isoString)). + toEqual(angular.String.toDate(isoString).toLocaleDateString()); + }); }); }); |
