[test] Update test code to make them compatible with node
Do not spy XMLHttpRequest, as it is node 100% compatible between node and browser. Spy ajax calls instead. Do not rely on storage not available in node (like localstorage).
1 parent 20f2d3e9
Showing 7 changed files with 106 additions and 80 deletions