File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"serve" : " vue-cli-service serve" ,
8
8
"build" : " vue-cli-service build" ,
9
- "test:unit" : " vue-cli-service test:unit" ,
10
9
"lint" : " vue-cli-service lint" ,
11
10
"codecov" : " codecov -f coverage/coverage-final.json" ,
12
- "e2e " : " cypress open " ,
13
- "test" : " jest " ,
14
- "test:jest " : " jest "
11
+ "test:unit " : " jest " ,
12
+ "test:e2e " : " npx cypress run " ,
13
+ "test" : " npm run test:unit && npm run test:e2e "
15
14
},
16
15
"dependencies" : {
17
16
"codecov" : " ^3.7.0" ,
Original file line number Diff line number Diff line change @@ -48,9 +48,7 @@ describe('NavBar', () => {
48
48
afterEach ( ( ) => {
49
49
wrapper . destroy ( )
50
50
} )
51
- test ( 'is Vue instance' , ( ) => { // this will be depricated
52
- expect ( wrapper . isVueInstance ( ) ) . toBe ( true )
53
- } )
51
+
54
52
test ( 'should load app bar' , ( ) => {
55
53
const bar = wrapper . find ( '.v-app-bar' )
56
54
expect ( bar . find ( '.v-toolbar__title' ) . text ( ) ) . toBe ( 'Ambianic' )
Original file line number Diff line number Diff line change @@ -55,17 +55,20 @@ describe('NavBar', () => {
55
55
} )
56
56
test ( 'Connection details loaded' , ( ) => {
57
57
const card = wrapper . find ( '.v-card' )
58
- expect ( card . find ( '.v-card__title' ) . text ( ) ) . toBe ( 'Connection details' )
58
+ expect ( card . find ( '.v-card__title' ) . text ( ) ) . toBe ( 'Ambianic Edge connection details' )
59
59
expect ( card . exists ( ) ) . toBe ( true )
60
60
} )
61
61
62
- test ( 'Connection Status' , ( ) => {
62
+ /**
63
+ * These tests are under construction. Need to mock Edge's in Vuex
64
+ */
65
+ // test('Connection Status', () => {
63
66
64
- const edgeAddress = '5568ec87-42d8-47b0-aeea-01a125db0623'
65
- // state.pnp.edgeAddress = edgeAddress
67
+ // const edgeAddress = '5568ec87-42d8-47b0-aeea-01a125db0623'
68
+ // // state.pnp.edgeAddress = edgeAddress
66
69
67
- expect ( this . mutations . testMutation ) . toHaveBeenCalledWith ( { } , { } )
68
- } )
70
+ // expect(this.mutations.testMutation).toHaveBeenCalledWith({},{})
71
+ // })
69
72
70
73
71
74
// test('should load 5 buttons', () => {
You can’t perform that action at this time.
0 commit comments