Unit test nested function parameter

Viewed 36

What is the best way to mock and test the inner method onConfirm?

public confirm(): void {
  this.confirmation.open({
   onConfirm: () => this.foo(this.bar('baz'))
  })
}
0 Answers
Related