
committed by
Jeremy Elbourn

parent
35e32bbea1
commit
69996b1740
@ -8,8 +8,7 @@ import {
|
|||||||
iit,
|
iit,
|
||||||
inject,
|
inject,
|
||||||
it,
|
it,
|
||||||
xit,
|
xit
|
||||||
SpyObject
|
|
||||||
} from 'angular2/testing_internal';
|
} from 'angular2/testing_internal';
|
||||||
import {Injector, provide} from 'angular2/core';
|
import {Injector, provide} from 'angular2/core';
|
||||||
import {MockBackend, MockConnection} from 'angular2/src/http/backends/mock_backend';
|
import {MockBackend, MockConnection} from 'angular2/src/http/backends/mock_backend';
|
||||||
@ -32,18 +31,6 @@ import {
|
|||||||
import {Observable} from 'rxjs/Observable';
|
import {Observable} from 'rxjs/Observable';
|
||||||
import {Subject} from 'rxjs/Subject';
|
import {Subject} from 'rxjs/Subject';
|
||||||
|
|
||||||
class SpyObserver extends SpyObject {
|
|
||||||
onNext: Function;
|
|
||||||
onError: Function;
|
|
||||||
onCompleted: Function;
|
|
||||||
constructor() {
|
|
||||||
super();
|
|
||||||
this.onNext = this.spy('onNext');
|
|
||||||
this.onError = this.spy('onError');
|
|
||||||
this.onCompleted = this.spy('onCompleted');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export function main() {
|
export function main() {
|
||||||
describe('injectables', () => {
|
describe('injectables', () => {
|
||||||
var url = 'http://foo.bar';
|
var url = 'http://foo.bar';
|
||||||
|
Reference in New Issue
Block a user