revert(format): Revert "chore(format): update to latest formatter"
This reverts commit 03627aa84d.
This commit is contained in:
@@ -1,12 +1,24 @@
|
||||
import {describe, it, expect, beforeEach, ddescribe, iit, xit, el, SpyObject, AsyncTestCompleter, inject} from 'angular2/testing_internal';
|
||||
import {
|
||||
describe,
|
||||
it,
|
||||
expect,
|
||||
beforeEach,
|
||||
ddescribe,
|
||||
iit,
|
||||
xit,
|
||||
el,
|
||||
SpyObject,
|
||||
AsyncTestCompleter,
|
||||
inject
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {Observable, Subject, EventEmitter, PromiseWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
export function main() {
|
||||
describe('Observable', () => {
|
||||
describe('#core', () => {
|
||||
describe("Observable", () => {
|
||||
describe("#core", () => {
|
||||
|
||||
it('should call next with values', inject([AsyncTestCompleter], (async) => {
|
||||
it("should call next with values", inject([AsyncTestCompleter], (async) => {
|
||||
|
||||
let o = new Observable(sink => { sink.next(1); });
|
||||
|
||||
@@ -17,7 +29,7 @@ export function main() {
|
||||
|
||||
}));
|
||||
|
||||
it('should call next and then complete', inject([AsyncTestCompleter], (async) => {
|
||||
it("should call next and then complete", inject([AsyncTestCompleter], (async) => {
|
||||
|
||||
let o = new Observable(sink => {
|
||||
sink.next(1);
|
||||
@@ -25,16 +37,14 @@ export function main() {
|
||||
});
|
||||
let nexted = false;
|
||||
|
||||
o.subscribe(
|
||||
v => { nexted = true; }, null,
|
||||
() => {
|
||||
expect(nexted).toBe(true);
|
||||
async.done();
|
||||
});
|
||||
o.subscribe(v => { nexted = true; }, null, () => {
|
||||
expect(nexted).toBe(true);
|
||||
async.done();
|
||||
});
|
||||
|
||||
}));
|
||||
|
||||
it('should call error with errors', inject([AsyncTestCompleter], (async) => {
|
||||
it("should call error with errors", inject([AsyncTestCompleter], (async) => {
|
||||
|
||||
let o = new Observable(sink => { sink.error('oh noes!'); });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user