mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-24 03:55:49 +08:00
Fixed filter.date, so it parses format ending with non-replaced string
Closes #159
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user