TestDocFactory
Test doc factory class.
Example:
let factory = new TestDocFactory('mocha', ast, pathResolver);
factory.push(node, parentNode);
let results = factory.results;
Static Method Summary
Static Private Methods | ||
private static |
get unique id. |
Constructor Summary
Public Constructor | ||
public |
constructor(type: string, ast: AST, pathResolver: PathResolver) create instance. |
Member Summary
Public Members | ||
public get |
|
Private Members | ||
private |
|
|
private |
|
|
private |
|
|
private |
|
Method Summary
Public Methods | ||
public |
push node, and factory process the node. |
Private Methods | ||
private |
_pushForMocha(node: ASTNode) push node as mocha test code. |
Static Private Methods
Public Constructors
public constructor(type: string, ast: AST, pathResolver: PathResolver) source
create instance.
Params:
Name | Type | Attribute | Description |
type | string | test type. now support only 'mocha'. |
|
ast | AST | AST of test code. |
|
pathResolver | PathResolver | path resolver of test code. |