Skip to content

How to test component #68

Closed
Closed
@pavel123123

Description

@pavel123123

Hi
I don't understand one moment in your example for testing http://vuejs.org/guide/application.html#Unit_Testing

//----------------return only object
var myComponent = require('../src/my-component')
//----------------why the myComponent contain function "data" ?
expect(typeof myComponent.data).toBe('function')

Thank you for advance.

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