Skip to content
This repository was archived by the owner on Dec 26, 2018. It is now read-only.
This repository was archived by the owner on Dec 26, 2018. It is now read-only.

MessageToggle.vue test failed #4

@404157386

Description

@404157386

Hello, i run the code, but the test can't pass 100%, this is the error log:

MessageToggle.vue
1) toggles msg passed to Message when button is clicked

3 passing (35ms)
1 failing

  1. MessageToggle.vue toggles msg passed to Message when button is clicked:
    Error: [vue-test-utils]: find did not return Component, cannot call hasProp() on empty Wrapper
    at throwError (node_modules_vue-test-utils@1.0.0-beta.11@vue-test-utils\dist\vue-test-utils.js:11:9)
    at ErrorWrapper.hasProp (node_modules_vue-test-utils@1.0.0-beta.11@vue-test-utils\dist\vue-test-utils.js:602:3)
    at Context.it (.tmp\mocha-webpack\1519815705782\webpack:\test\MessageToggle.spec.js:12:1)
    at callFn (node_modules_mocha@3.5.3@mocha\lib\runnable.js:348:21)
    at Test.Runnable.run (node_modules_mocha@3.5.3@mocha\lib\runnable.js:340:7)
    at Runner.runTest (node_modules_mocha@3.5.3@mocha\lib\runner.js:443:10)
    at node_modules_mocha@3.5.3@mocha\lib\runner.js:549:12
    at next (node_modules_mocha@3.5.3@mocha\lib\runner.js:361:14)
    at node_modules_mocha@3.5.3@mocha\lib\runner.js:371:7
    at next (node_modules_mocha@3.5.3@mocha\lib\runner.js:295:14)
    at Immediate. (node_modules_mocha@3.5.3@mocha\lib\runner.js:339:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions