diff options
| author | Vojta Jina | 2011-01-09 13:41:55 +0000 | 
|---|---|---|
| committer | Igor Minar | 2011-01-10 10:37:37 -0800 | 
| commit | aab3df7aeaf79908e8b6212288b283adb42b1ce6 (patch) | |
| tree | 27040cc2bdd2e5c861dabc03aecc723a7f21f3c0 /test/FiltersSpec.js | |
| parent | 0a6cf70debc6440685af3f9ea96a66450e4f4ed7 (diff) | |
| download | angular.js-aab3df7aeaf79908e8b6212288b283adb42b1ce6.tar.bz2 | |
Fixed filter.date, so it parses format ending with non-replaced string
Closes #159
Diffstat (limited to 'test/FiltersSpec.js')
| -rw-r--r-- | test/FiltersSpec.js | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/test/FiltersSpec.js b/test/FiltersSpec.js index d28cae82..7e824e0d 100644 --- a/test/FiltersSpec.js +++ b/test/FiltersSpec.js @@ -142,5 +142,9 @@ describe('filter', function() {        expect(filter.date(isoString)).            toEqual(angular.String.toDate(isoString).toLocaleDateString());      }); + +    it('should parse format ending with non-replaced string', function() { +      expect(filter.date(morning, 'yy/xxx')).toEqual('10/xxx'); +    });    });  }); | 
