Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function setup() {
const container = AuDOMConfiguration.createContainer();
IExpressionParserRegistration.register(container as any);
const dom = container.get(IDOM);
const renderable: IController = {
$bindingHead: null,
$bindingTail: null,
$componentHead: null,
$componentTail: null,
$context: null,
$nodes: null,
$scope: null
};
container.register(Registration.instance(IController, renderable));
const target = AuNode.createMarker();
const renderingEngine = container.get(IRenderingEngine);
const sut = container.get(IRenderer);
const renderContext: IRenderContext = {
get(key) {
return key === IRenderer ? sut : { $hydrate: spy(), key } as any;
},
beginComponentOperation() {
return {
dispose: spy()
} as any;
},
createChild: PLATFORM.noop as any,
render: PLATFORM.noop,
has: PLATFORM.noop as any,