Skip to content

use with vue-resource throw error #407

@mtdpcs

Description

@mtdpcs

Version

1.0.0-beta.11

Reproduction link

https://github.com/mtdpcs/vue-test-util-ex

Steps to reproduce

  1. git clone https://github.com/mtdpcs/vue-test-util-ex.git
  2. cd vue-test-util-ex npm install
  3. npm run test

What is expected?

unit passed

What is actually happening?

Cannot read property 'params' of undefined


in this project i install vue-resource and use 'Vue.url.params' to encode an obj to params,
when i run 'npm run dev' it works well , but when i run 'jest' i throw error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions