How to mock window.navigator.language using jest

后端 未结 0 1976
小蘑菇
小蘑菇 2021-02-13 09:12

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

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