angular-cn/modules/@angular/core/test/spies.ts

27 lines
695 B
TypeScript
Raw Normal View History

import {
ChangeDetectorRef,
} from 'angular2/src/core/change_detection/change_detection';
2015-08-26 14:41:41 -04:00
import {ElementRef} from 'angular2/src/core/linker/element_ref';
import {DomAdapter} from 'angular2/src/platform/dom/dom_adapter';
2015-08-26 14:41:41 -04:00
import {SpyObject, proxy} from 'angular2/testing_internal';
2015-08-26 14:41:41 -04:00
export class SpyChangeDetectorRef extends SpyObject {
constructor() {
super(ChangeDetectorRef);
this.spy('detectChanges');
this.spy('checkNoChanges');
}
2015-08-26 14:41:41 -04:00
}
export class SpyIterableDifferFactory extends SpyObject {}
export class SpyElementRef extends SpyObject {
constructor() { super(ElementRef); }
}
export class SpyDomAdapter extends SpyObject {
constructor() { super(DomAdapter); }
}