chore: update zone.js to 0.5.1

fix #1862
This commit is contained in:
Victor Berchet
2015-05-19 09:13:17 +02:00
parent ad95601e3c
commit 94272af45b
6 changed files with 13 additions and 17 deletions
@@ -37,14 +37,10 @@ export function main() {
it('should work with inject()',
inject([Parser], fakeAsync((parser) => { expect(parser).toBeAnInstanceOf(Parser); })));
if (!IS_DARTIUM) {
it('should throw on nested calls', () => {
// TODO(vicb): re-enable once the jasmine patch from zone.js is applied
if (!IS_DARTIUM) return;
expect(() => { fakeAsync(() => { fakeAsync(() => null)(); })(); })
.toThrowError('fakeAsync() calls can not be nested');
});
}
it('should throw on nested calls', () => {
expect(() => { fakeAsync(() => { fakeAsync(() => null)(); })(); })
.toThrowError('fakeAsync() calls can not be nested');
});
it('should flush microtasks before returning', () => {
var thenRan = false;