Skip to content

Instantly share code, notes, and snippets.

View imrvelj's full-sized avatar
Undefined is not a function

Ivan Mrvelj imrvelj

Undefined is not a function
View GitHub Profile
@imrvelj
imrvelj / TestComponent.test.js
Created January 31, 2020 13:25 — forked from PMK/TestComponent.test.js
Mocha-webpack with Vue
import { mount } from '@vue/test-utils'
import { assert } from 'chai'
import Component from '../../../../src/components/TestComponent.vue'
describe('TestComponent.vue', () => {
it('renders', () => {
const wrapper = mount(Component)
assert.isTrue(
wrapper.is(true)