Skip to content

Commit deb328a

Browse files
fix: Tests setup finished
Unit tests are good to go. Push for collaborator to take down to help writing some stubs / mocks for Vuex
1 parent 33b853c commit deb328a

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Diff for: tests/unit/navbar.spec.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { shallowMount } from '@vue/test-utils'
2+
import NavBar from '../../src/components/NavBar.vue'
3+
4+
5+
describe('NavBar', () => {
6+
it('should render a Topic component when Vue creates it', () => {
7+
const wrapper = shallowMount(NavBar, {
8+
computed: {
9+
currentNavIndex () {
10+
return 1
11+
}
12+
}
13+
})
14+
15+
console.log(wrapper)
16+
})
17+
})

0 commit comments

Comments
 (0)