8000 Weird node error when testing with Jest · Issue #68 · mjackson/mach · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Weird node error when testing with Jest #68
Open
@blainekasten

Description

@blainekasten

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0