API
Noo.createMock(): Mock
Noo.getChildReport(report, keys: string[]): Report;
Noo.getProp(mock, keys: string[]): any
Example
mock = NoocreateMock;mockitallowseternalpropertyaccessandcallablesoenjoymock1mockitmockitallows consolelog utilinspect mockreportfalsenull
Dump
{ getCount: { it: 3 },
setCount: {},
setItems: {},
applyCount: 1,
applyArgumentsList: [ [ 1 ] ],
properties:
{ it:
{ getCount: { allows: 2 },
setCount: {},
setItems: {},
applyCount: 1,
applyArgumentsList: [ [] ],
properties:
{ allows:
{ getCount: { eternal: 1 },
setCount: {},
setItems: {},
applyCount: 1,
applyArgumentsList: [ [] ],
properties:
{ eternal:
{ getCount: { property: 1 },
setCount: {},
setItems: {},
applyCount: 0,
applyArgumentsList: [],
properties:
{ property:
{ getCount: { access: 1 },
setCount: {},
setItems: {},
applyCount: 0,
applyArgumentsList: [],
properties:
{ access:
{ getCount: { with: 1 },
setCount: {},
setItems: {},
applyCount: 0,
applyArgumentsList: [],
properties:
{ with:
{ getCount: { callable: 1 },
setCount: {},
setItems: {},
applyCount: 0,
applyArgumentsList: [],
properties:
{ callable:
{ getCount: {},
setCount: {},
setItems: {},
applyCount: 1,
applyArgumentsList: [ [] ],
properties: {} } } } } } } } } } } } } } } }
LICENSE
MIT