@@ -96,7 +96,7 @@ describe('getClusterState', () => {
9696 it ( 'should alert if green -> yellow' , async ( ) => {
9797 const result = await setupAlert ( AlertClusterStateState . Green , AlertClusterStateState . Yellow ) ;
9898 expect ( executeActions ) . toHaveBeenCalledWith (
99- undefined ,
99+ services . alertInstanceFactory ( ALERT_TYPE_CLUSTER_STATE ) ,
100100 cluster ,
101101 AlertClusterStateState . Yellow ,
102102 emailAddress
@@ -110,7 +110,7 @@ describe('getClusterState', () => {
110110 it ( 'should alert if yellow -> green' , async ( ) => {
111111 const result = await setupAlert ( AlertClusterStateState . Yellow , AlertClusterStateState . Green ) ;
112112 expect ( executeActions ) . toHaveBeenCalledWith (
113- undefined ,
113+ services . alertInstanceFactory ( ALERT_TYPE_CLUSTER_STATE ) ,
114114 cluster ,
115115 AlertClusterStateState . Green ,
116116 emailAddress ,
@@ -124,7 +124,7 @@ describe('getClusterState', () => {
124124 it ( 'should alert if green -> red' , async ( ) => {
125125 const result = await setupAlert ( AlertClusterStateState . Green , AlertClusterStateState . Red ) ;
126126 expect ( executeActions ) . toHaveBeenCalledWith (
127- undefined ,
127+ services . alertInstanceFactory ( ALERT_TYPE_CLUSTER_STATE ) ,
128128 cluster ,
129129 AlertClusterStateState . Red ,
130130 emailAddress
@@ -138,7 +138,7 @@ describe('getClusterState', () => {
138138 it ( 'should alert if red -> green' , async ( ) => {
139139 const result = await setupAlert ( AlertClusterStateState . Red , AlertClusterStateState . Green ) ;
140140 expect ( executeActions ) . toHaveBeenCalledWith (
141- undefined ,
141+ services . alertInstanceFactory ( ALERT_TYPE_CLUSTER_STATE ) ,
142142 cluster ,
143143 AlertClusterStateState . Green ,
144144 emailAddress ,
0 commit comments