Skip to content

Instantly share code, notes, and snippets.

@jamesoshea
Created July 19, 2018 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesoshea/45b35d6d37d5f27facc8f401ff00f3e9 to your computer and use it in GitHub Desktop.
Save jamesoshea/45b35d6d37d5f27facc8f401ff00f3e9 to your computer and use it in GitHub Desktop.
test('someComputedProperty should evaluate buzzwords correctly', () => {
const wrapper = mount(CoolCard, {
propsData: {
wow: 'wow'
}
});
wrapper.setData({
buzzword: 'Big Data'
});
expect(wrapper.vm.someComputedProperty).toEqual('Big Data is very big');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment