mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-22 05:11:51 +00:00
parent
fe65932404
commit
1366556ace
1 changed files with 4 additions and 1 deletions
|
|
@ -247,7 +247,10 @@ describe('filters', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should accept negative numbers as strings', function() {
|
it('should accept negative numbers as strings', function() {
|
||||||
expect(date('-1')).toEqual('Dec 31, 1969');
|
//Note: this tests a timestamp set for 3 days before the unix epoch.
|
||||||
|
//The behavior of `date` depends on your timezone, which is why we check just
|
||||||
|
//the year and not the whole daye. See Issue #4218
|
||||||
|
expect(date('-259200000').split(' ')[2]).toEqual('1969');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should format timezones correctly (as per ISO_8601)', function() {
|
it('should format timezones correctly (as per ISO_8601)', function() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue