Files
angular-docs-cn/modules/@angular/core/test/spies.ts
T

23 lines
679 B
TypeScript
Raw Normal View History

import {ElementRef} from '@angular/core';
2016-06-08 16:38:52 -07:00
import {ChangeDetectorRef} from '@angular/core/src/change_detection/change_detection';
import {SpyObject} from '@angular/core/testing/testing_internal';
2016-06-08 16:38:52 -07:00
import {DomAdapter} from '@angular/platform-browser/src/dom/dom_adapter';
2015-08-26 11:41:41 -07:00
export class SpyChangeDetectorRef extends SpyObject {
constructor() {
super(ChangeDetectorRef);
this.spy('detectChanges');
this.spy('checkNoChanges');
}
2015-08-26 11:41:41 -07:00
}
export class SpyIterableDifferFactory extends SpyObject {}
export class SpyElementRef extends SpyObject {
constructor() { super(ElementRef); }
}
export class SpyDomAdapter extends SpyObject {
constructor() { super(DomAdapter); }
2015-09-02 15:07:31 -07:00
}