Is there any way to mock the RowNodes of AG-grid in unit test?
I need to check if forEachNode a function call gets executed with the 
RowNode as a parameter and then test the conditional branches.

Below is my sample code

func1() {
     agGrid.api.forEachNode(node => func2(node));
}

func2(node: RowNode) {
    serviceCall.subscribe(
            (returnValue) => {
                     node.setDataValue('f1', returnValue.p1);
            },
           () => {
                     node.setDataValue(' f1', '');
           }
      );
}


Thanks,

Rashmi 

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/e3b21858-af04-4abd-8681-345eaf9873fcn%40googlegroups.com.

Reply via email to