File tree Expand file tree Collapse file tree 23 files changed +46
-37
lines changed Expand file tree Collapse file tree 23 files changed +46
-37
lines changed Original file line number Diff line number Diff line change 63
63
"vue-perfect-scrollbar" : " ^0.1.0"
64
64
},
65
65
"devDependencies" : {
66
+ "@vue/test-utils" : " ^1.0.0-beta.24" ,
66
67
"babel-core" : " ^6.26.3" ,
67
68
"babel-eslint" : " ^9.0.0" ,
68
69
"babel-jest" : " ^23.4.2" ,
103
104
"vue-loader" : " ^15.4.1" ,
104
105
"vue-router" : " ^3.0.1" ,
105
106
"vue-server-renderer" : " ^2.5.17" ,
106
- "vue-template-compiler" : " ^2.5.17" ,
107
- "vue-test-utils" : " ^1.0.0-beta.11"
107
+ "vue-template-compiler" : " ^2.5.17"
108
108
},
109
109
"lint-staged" : {
110
110
"*.{js,vue}" : [
Original file line number Diff line number Diff line change 1
- import { mount } from 'vue- test-utils'
1
+ import { mount } from '@ vue/ test-utils'
2
2
import Aside from "../Aside/Aside" ;
3
3
4
4
describe ( "Aside.vue" , ( ) => {
Original file line number Diff line number Diff line change 1
- import { mount } from "vue- test-utils" ;
1
+ import { mount } from "@ vue/ test-utils" ;
2
2
import AsideToggler from "../Aside/AsideToggler" ;
3
3
4
4
describe ( "AsideToggler.vue" , ( ) => {
Original file line number Diff line number Diff line change 1
- import { mount } from "vue- test-utils" ;
1
+ import { mount } from "@ vue/ test-utils" ;
2
2
import Callout from "../Callout/Callout" ;
3
3
4
4
describe ( "Callout.vue" , ( ) => {
Original file line number Diff line number Diff line change 1
- import { mount } from "vue- test-utils" ;
1
+ import { mount } from "@ vue/ test-utils" ;
2
2
import Footer from "../Footer/Footer" ;
3
3
4
4
describe ( "Footer.vue" , ( ) => {
Original file line number Diff line number Diff line change 1
- import { mount } from "vue- test-utils" ;
1
+ import { mount } from "@ vue/ test-utils" ;
2
2
import Header from "../Header/Header" ;
3
3
4
4
describe ( "Header.vue" , ( ) => {
Original file line number Diff line number Diff line change 1
- import { mount } from 'vue- test-utils'
1
+ import { shallowMount } from '@ vue/ test-utils'
2
2
import HeaderDropdown from '../Header/HeaderDropdown' ;
3
3
4
4
describe ( "HeaderDropdown.vue" , ( ) => {
5
5
// Inspect the raw component options
6
6
it ( "should have default props" , ( ) => {
7
- const wrapper = mount ( HeaderDropdown , {
7
+ const wrapper = shallowMount ( HeaderDropdown , {
8
8
propsData : {
9
9
right : false ,
10
10
noCaret : false
@@ -14,7 +14,7 @@ describe("HeaderDropdown.vue", () => {
14
14
expect ( wrapper . props ( ) . noCaret ) . toBe ( false )
15
15
} ) ;
16
16
it ( 'renders correctly' , ( ) => {
17
- const wrapper = mount ( HeaderDropdown )
17
+ const wrapper = shallowMount ( HeaderDropdown )
18
18
expect ( wrapper . element ) . toMatchSnapshot ( )
19
19
expect ( wrapper . find ( 'span' ) . text ( ) ) . toBe ( 'dropdown' )
20
20
expect ( wrapper . find ( 'span' ) . classes ( ) ) . toContain ( 'text-center' )
Original file line number Diff line number Diff line change 1
- import { mount } from 'vue- test-utils'
1
+ import { mount } from '@ vue/ test-utils'
2
2
import Sidebar from "../Sidebar/Sidebar" ;
3
3
4
4
describe ( "Sidebar.vue" , ( ) => {
Original file line number Diff line number Diff line change 1
- import { mount } from 'vue- test-utils'
1
+ import { mount } from '@ vue/ test-utils'
2
2
import SidebarFooter from "../Sidebar/SidebarFooter" ;
3
3
4
4
describe ( "SidebarFooter.vue" , ( ) => {
Original file line number Diff line number Diff line change 1
- import { mount } from 'vue- test-utils'
1
+ import { mount } from '@ vue/ test-utils'
2
2
import SidebarForm from "../Sidebar/SidebarForm" ;
3
3
4
4
describe ( "SidebarForm.vue" , ( ) => {
You can’t perform that action at this time.
0 commit comments