How to mock window.navigator.language using jest

后端 未结 0 684
星月不相逢
星月不相逢 2021-02-13 09:39

I am trying to mock the window.navigator.language attribute in the browser in my jest unit tests so I can test that the content on my page is using the correct lang

相关标签:
回答
  • 消灭零回复
提交回复
热议问题