XMLHttpRequest()
or fetch()
in any web-based testing environment, and place that code inside of your tests.
karma-jasmine
, for example, to get the describe/it
APIs, but you don't necessarily have to install Jasmine specifically. 👉 https://jasmine.github.io
npm ls karma-chai
or npm ls karma-jasmine
to see if they are installed in your project.
karma-jasmine
?