mach icon indicating copy to clipboard operation
mach copied to clipboard

Weird node error when testing with Jest

Open blainekasten opened this issue 9 years ago • 1 comments

So i'm trying to implement this in a React project and am using Jest to test with. I'm currently getting this error when triggering a fucntion that calls the mach code

/Location.js: Property description must be an object: undefined

My code that is triggering this looks like:

login() {
    mach.post({
      url: url,
      params: {...},
      headers: {
        'X-CSRF-TOKEN': token
      }
    }).then(() => location.reload());
}

node 0.10, jest 0.2.2

blainekasten avatar Mar 13 '15 05:03 blainekasten