Last active
March 5, 2017 16:28
-
-
Save thangman22/abd687b9154ae1e9f7f4ba31de5f605a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Test data | |
it('sets the correct default data', () => { | |
const defaultData = MyComponent.data() | |
expect(defaultData.message).toBe('hello!') | |
}) | |
// Test method | |
it('message method working correct', () => { | |
const defaultData = MyComponent.methods | |
expect(defaultData.message()).toBe('hello!') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment