angular-docs-cn/public/docs/js/latest/api/test/SpyObject-class.jade

74 lines
1.0 KiB
Plaintext

p.location-badge.
exported from <a href='../test'>angular2/test</a>
defined in <a href="https://github.com/angular/angular/tree/2.0.0-alpha.37/modules/angular2/src/test_lib/test_lib.ts#L349-L403">angular2/src/test_lib/test_lib.ts (line 349)</a>
:markdown
This module is used for writing tests for applications written in Angular.
This module is not included in the `angular2` module; you must import the test module explicitly.
.l-main-section
h2 Members
.l-sub-section
h3 constructor
pre.prettyprint
code.
constructor(type?: any)
:markdown
.l-sub-section
h3 noSuchMethod
pre.prettyprint
code.
noSuchMethod(args: any)
:markdown
.l-sub-section
h3 spy
pre.prettyprint
code.
spy(name: any)
:markdown
.l-sub-section
h3 prop
pre.prettyprint
code.
prop(name: any, value: any)
:markdown