You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to mock Office.context.displayLanguage property, but without success. I've got the following error while accessing this property:
"error, property was not loaded". This is an output from console.log. I didn't get which property I should load and how?
And when I try to build project I've got ts2740 error saying that mock object doesn't implement members defined by Office namespace and which ain't used in fact.
Current behavior
I'm trying to mock Office.context.displayLanguage property, but without success. I've got the following error while accessing this property:
"error, property was not loaded". This is an output from console.log. I didn't get which property I should load and how?
And when I try to build project I've got ts2740 error saying that mock object doesn't implement members defined by Office namespace and which ain't used in fact.
Steps to Reproduce
https://codesandbox.io/p/devbox/officemock-rjtz6m?file=%2Fsrc%2FofficeService.test.ts%3A8%2C23
Context
Just execute npm run test in repro
The text was updated successfully, but these errors were encountered: