Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 929064d

Browse files
committed
test($http): ignore date-toJSON test if running in IE8
IE8 does not implement Date.prototype.toISOString(), which is necessary for this feature. The feature still works if this method is polyfilled, but these tests are not run with polyfills.
1 parent d0b873a commit 929064d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/ng/httpSpec.js

+1
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ describe('$http', function() {
463463
});
464464

465465
it('should not double quote dates', function() {
466+
if (msie < 9) return;
466467
$httpBackend.expect('GET', '/url?date=2014-07-15T17:30:00.000Z').respond('');
467468
$http({url: '/url', params: {date:new Date('2014-07-15T17:30:00.000Z')}, method: 'GET'});
468469
});

0 commit comments

Comments
 (0)