refactor(pipes): removed pipes from properties

BREAKING CHANGE:

This PR remove an ability to use pipes in the properties config. Instead, inject the pipe registry.
This commit is contained in:
vsavkin
2015-06-18 15:40:12 -07:00
parent ad7aca631d
commit 20a8f0dbe5
31 changed files with 261 additions and 270 deletions

View File

@ -274,7 +274,7 @@ export interface GuinessCompatibleSpy extends jasmine.Spy {
}
export class SpyObject {
constructor(type = null, forceSpyCreation: boolean = false) {
constructor(type = null) {
if (type) {
for (var prop in type.prototype) {
var m = null;
@ -287,11 +287,7 @@ export class SpyObject {
// should not matter.
}
if (typeof m === 'function') {
if (forceSpyCreation) {
this.createSpy(prop);
} else {
this.spy(prop);
}
this.spy(prop);
}
}
}
@ -301,14 +297,8 @@ export class SpyObject {
spy(name) {
if (!this[name]) {
return this.createSpy(name);
} else {
return this[name];
this[name] = this._createGuinnessCompatibleSpy(name);
}
}
createSpy(name) {
this[name] = this._createGuinnessCompatibleSpy(name);
return this[name];
}