Closed
Description
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
Labels
No labels