@@ -4,7 +4,7 @@ import Vuex from 'vuex'
44import CopyrightWaiverStep from '@/components/CopyrightWaiverStep'
55
66const localVue = createLocalVue ( )
7-
7+
88localVue . use ( Vuex )
99localVue . use ( Buefy )
1010
@@ -21,63 +21,62 @@ describe('CopyrightWaiver Step: Check conditional rendering of markup', () => {
2121 }
2222 } ,
2323 mocks : {
24- $t : key => key ,
24+ $t : key => key
2525 }
2626 } )
2727 } )
2828
29- afterEach ( ( ) => {
29+ afterEach ( ( ) => {
3030 wrapper . destroy ( )
3131 } )
3232
33- it ( 'Component not mounted if status is inactive' , ( ) => {
33+ it ( 'Component not mounted if status is inactive' , ( ) => {
3434 wrapper . setProps ( {
3535 selected : undefined ,
36- status : 'inactive' ,
36+ status : 'inactive' ,
3737 stepId : 6 ,
38- stepName : 'CW' ,
38+ stepName : 'CW'
3939 } )
4040
41- expect ( wrapper . find ( '.step-description' ) . exists ( ) ) . toBeFalsy ( )
42- expect ( wrapper . find ( '.step-actions' ) . exists ( ) ) . toBeFalsy ( )
41+ expect ( wrapper . find ( '.step-description' ) . exists ( ) ) . toBeFalsy ( )
42+ expect ( wrapper . find ( '.step-actions' ) . exists ( ) ) . toBeFalsy ( )
4343 } )
4444
45- it ( 'Step Description block mounted if status is previous' , ( ) => {
46- wrapper . setProps ( { status : 'previous' } )
47-
45+ it ( 'Step Description block mounted if status is previous' , ( ) => {
46+ wrapper . setProps ( { status : 'previous' } )
47+
4848 expect ( wrapper . find ( '.step-description' ) . exists ( ) ) . toBeTruthy ( )
4949 expect ( wrapper . find ( '.step-actions' ) . exists ( ) ) . toBeFalsy ( )
5050 } )
5151
52- it ( 'Step Actions block mounted if status is current' , ( ) => {
53- wrapper . setProps ( { status : 'current' } )
52+ it ( 'Step Actions block mounted if status is current' , ( ) => {
53+ wrapper . setProps ( { status : 'current' } )
5454
5555 expect ( wrapper . find ( '.step-description' ) . exists ( ) ) . toBeFalsy ( )
5656 expect ( wrapper . find ( '.step-actions' ) . exists ( ) ) . toBeTruthy ( )
5757 expect ( wrapper . vm . copyrightWaiverAgreed ) . toBe ( false )
5858 } )
59-
6059} )
6160
6261describe ( 'Test functionality of computed properties' , ( ) => {
63- let wrapper
62+ let wrapper
6463
6564 beforeEach ( ( ) => {
6665 wrapper = mount ( CopyrightWaiverStep , {
6766 localVue,
68- propsData :{
67+ propsData : {
6968 selected : undefined ,
70- status : 'current' ,
71- stepId : 6 ,
72- stepName : 'CW' ,
69+ status : 'current' ,
70+ stepId : 6 ,
71+ stepName : 'CW'
7372 } ,
7473 mocks : {
75- $t : key => key ,
74+ $t : key => key
7675 }
7776 } )
7877 } )
7978
80- afterEach ( ( ) => {
79+ afterEach ( ( ) => {
8180 wrapper . destroy ( )
8281 } )
8382
@@ -88,7 +87,7 @@ describe('Test functionality of computed properties', () => {
8887 } )
8988
9089 const checkbox = wrapper . findAll ( 'input[type="checkbox"]' ) . at ( 0 )
91- checkbox . setChecked ( ) ;
90+ checkbox . setChecked ( )
9291
9392 expect ( wrapper . emitted ( ) . change [ 0 ] ) . toStrictEqual ( [ 'CW' , 6 , true ] )
9493 } )
@@ -100,9 +99,8 @@ describe('Test functionality of computed properties', () => {
10099 } )
101100
102101 const checkbox = wrapper . findAll ( 'input[type="checkbox"]' ) . at ( 1 )
103- checkbox . setChecked ( ) ;
102+ checkbox . setChecked ( )
104103
105104 expect ( wrapper . emitted ( ) . change [ 0 ] ) . toStrictEqual ( [ 'CW' , 6 , true ] )
106105 } )
107-
108- } )
106+ } )
0 commit comments