After updating from 5.3.0 my application broke on a method that was returned a promise. It turned out that the instead of the promise, undefined was returned by the method, comparable to the behaviour described in issue #106.
This has been fixed by adding return fn in trackEventMethodDecorator.
The unit test now has an extra check to see if the original method still works.
After updating from 5.3.0 my application broke on a method that was returned a promise. It turned out that the instead of the promise, undefined was returned by the method, comparable to the behaviour described in issue #106.
This has been fixed by adding
return fn
intrackEventMethodDecorator
. The unit test now has an extra check to see if the original method still works.