@@ -36,6 +36,7 @@ import reducer, {
36
36
changeInstanceAliasFailure ,
37
37
changeInstanceAliasSuccess ,
38
38
changeInstanceAliasAction ,
39
+ resetConnectedInstance ,
39
40
} from '../instances'
40
41
import { addErrorNotification , addMessageNotification , IAddInstanceErrorPayload } from '../app/notifications'
41
42
import { ConnectionType , InitialStateInstances , Instance } from '../interfaces'
@@ -62,6 +63,7 @@ beforeEach(() => {
62
63
password : null ,
63
64
connectionType : ConnectionType . Standalone ,
64
65
nameFromProvider : null ,
66
+ modules : [ ] ,
65
67
lastConnection : new Date ( '2021-04-22T09:03:56.917Z' ) ,
66
68
} ,
67
69
{
@@ -73,6 +75,7 @@ beforeEach(() => {
73
75
password : null ,
74
76
connectionType : ConnectionType . Standalone ,
75
77
nameFromProvider : null ,
78
+ modules : [ ] ,
76
79
tls : {
77
80
verifyServerCert : true ,
78
81
caCertId : '70b95d32-c19d-4311-bb24-e684af12cf15' ,
@@ -89,6 +92,7 @@ beforeEach(() => {
89
92
connectionType : ConnectionType . Sentinel ,
90
93
nameFromProvider : null ,
91
94
lastConnection : new Date ( '2021-04-22T18:40:44.031Z' ) ,
95
+ modules : [ ] ,
92
96
endpoints : [
93
97
{
94
98
host : 'localhost' ,
@@ -670,6 +674,7 @@ describe('instances slice', () => {
670
674
// Assert
671
675
const expectedActions = [
672
676
setDefaultInstance ( ) ,
677
+ resetConnectedInstance ( ) ,
673
678
setDefaultInstanceSuccess ( ) ,
674
679
]
675
680
@@ -702,6 +707,7 @@ describe('instances slice', () => {
702
707
// Assert
703
708
const expectedActions = [
704
709
setDefaultInstance ( ) ,
710
+ resetConnectedInstance ( ) ,
705
711
setDefaultInstanceFailure ( responsePayload . response . data . message ) ,
706
712
addErrorNotification ( responsePayload as IAddInstanceErrorPayload ) ,
707
713
]
0 commit comments