diff options
| author | Igor Minar | 2011-10-20 16:50:49 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-10-20 16:51:28 -0700 |
| commit | c6c3949b14f4003ecab291243edfca61262f2c3d (patch) | |
| tree | b871af216ad9792f923a0faf2553c28d50db40fc /test/FiltersSpec.js | |
| parent | e175db37c6f52bba4080efeec22a7120a896099e (diff) | |
| download | angular.js-c6c3949b14f4003ecab291243edfca61262f2c3d.tar.bz2 | |
feat(filter.date): use mediumDate as default
Breaking change!
Previously the default was fullDate.
Diffstat (limited to 'test/FiltersSpec.js')
| -rw-r--r-- | test/FiltersSpec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/FiltersSpec.js b/test/FiltersSpec.js index ac695ed4..df47ccc3 100644 --- a/test/FiltersSpec.js +++ b/test/FiltersSpec.js @@ -225,13 +225,13 @@ describe('filter', function() { }); it('should do basic filter', function() { - expect(date(noon)).toEqual(date(noon, 'fullDate')); - expect(date(noon, '')).toEqual(date(noon, 'fullDate')); + expect(date(noon)).toEqual(date(noon, 'mediumDate')); + expect(date(noon, '')).toEqual(date(noon, 'mediumDate')); }); it('should accept number or number string representing milliseconds as input', function() { - expect(date(noon.getTime())).toEqual(date(noon.getTime(), 'fullDate')); - expect(date(noon.getTime() + "")).toEqual(date(noon.getTime() + "", 'fullDate')); + expect(date(noon.getTime())).toEqual(date(noon.getTime(), 'mediumDate')); + expect(date(noon.getTime() + "")).toEqual(date(noon.getTime() + "", 'mediumDate')); }); it('should accept various format strings', function() { @@ -297,7 +297,7 @@ describe('filter', function() { it('should be able to parse ISO 8601 dates/times using', function() { var isoString = '2010-09-03T05:05:08.872Z'; expect(date(isoString)). - toEqual(date(isoString, 'fullDate')); + toEqual(date(isoString, 'mediumDate')); }); it('should parse format ending with non-replaced string', function() { |
