Created
May 5, 2017 18:45
-
-
Save MichaelSitter/63b26d9fc58e2a66f0ab7e92a7e47474 to your computer and use it in GitHub Desktop.
Vue testing question - spy on mixin methods
This file contains 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
// Component | |
export default { | |
mixins: [NotificationMixin], | |
methods: { | |
okNotification() { | |
this.showNotification('OK') | |
} | |
} | |
} | |
// Mixin | |
export default { | |
methods: { | |
showNotification(msg) { | |
// do notifying | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment