Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aa064d3

Browse files
committedOct 19, 2018
tests(unit): add more test cases and snapshots
1 parent e5a3e32 commit aa064d3

File tree

88 files changed

+55320
-49
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+55320
-49
lines changed
 

‎tests/unit/Users.spec.js

Lines changed: 0 additions & 35 deletions
This file was deleted.

‎tests/unit/DefaultAside.spec.js renamed to ‎tests/unit/containers/DefaultAside.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Vue from 'vue'
2+
import { shallowMount } from '@vue/test-utils';
23
import BootstrapVue from 'bootstrap-vue'
34
import DefaultAside from '@/containers/DefaultAside'
45

@@ -8,4 +9,8 @@ describe('DefaultAside.vue', () => {
89
it('has a name', () => {
910
expect(DefaultAside.name).toMatch('DefaultAside')
1011
})
12+
test('renders correctly', () => {
13+
const wrapper = shallowMount(DefaultAside)
14+
expect(wrapper.element).toMatchSnapshot()
15+
})
1116
})

0 commit comments

Comments
 (0)
Please sign in to comment.