Skip to content
Snippets Groups Projects
Commit ce812ab1 authored by fibasile's avatar fibasile
Browse files

fixed bug and test

parent 76c3970d
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@
import { openURL } from 'quasar'
export default {
methods: {
...openURL,
openURL,
handleVideoArchiveClick () {
this.openURL('https://vimeo.com/fabricademy')
},
......
......@@ -59,6 +59,8 @@ describe('Mount BannerFabricademy', () => {
const wrapper = makeWrapper();
const videoBtn = wrapper.find({ ref: 'videoArchiveButton' });
const mockFn = jest.fn();
expect(wrapper.vm.openURL).toBeDefined();
wrapper.setMethods({
openURL: mockFn
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment