@ -12,9 +12,7 @@ const sourcemaps = require('rollup-plugin-sourcemaps');
|
||||
const globals = {
|
||||
'@angular/core': 'ng.core',
|
||||
'@angular/common': 'ng.common',
|
||||
'rxjs/Observable': 'Rx',
|
||||
'rxjs/Subject': 'Rx',
|
||||
'rxjs/Subscription': 'Rx'
|
||||
'rxjs': 'rxjs',
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
import {Location, LocationStrategy} from '@angular/common';
|
||||
import {EventEmitter, Injectable} from '@angular/core';
|
||||
import {ISubscription} from 'rxjs/Subscription';
|
||||
import {SubscriptionLike} from 'rxjs';
|
||||
|
||||
|
||||
/**
|
||||
@ -113,7 +113,7 @@ export class SpyLocation implements Location {
|
||||
|
||||
subscribe(
|
||||
onNext: (value: any) => void, onThrow?: ((error: any) => void)|null,
|
||||
onReturn?: (() => void)|null): ISubscription {
|
||||
onReturn?: (() => void)|null): SubscriptionLike {
|
||||
return this._subject.subscribe({next: onNext, error: onThrow, complete: onReturn});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user