Dojo

How to mock dimension middleware

Hi,

Recently, I have upgraded my app to Dojo-V7 and I have developed my own widget which has usage of “dimension” middleware.
I am trying to mock this middleware in my unit(intern) tests but there is no mock module available.

Details:
I have created widget which is checking the dimension of root element and do some operation to it’s inner content. like hiding or moving content to some other dropdown list etc.
In test, I always get dimension of root element as 0.

please advice.