@@ -63,6 +63,7 @@ describe('SettingsComponent', () => {
6363 it ( 'should create' , ( ) => {
6464 accountServiceSpy . getAccountData . and . returnValue (
6565 of ( {
66+ id : 'id' ,
6667 activated : true ,
6768 authorities : [ 'test' , 'test' ] ,
6869 email : 'email@email.com' ,
@@ -84,6 +85,7 @@ describe('SettingsComponent', () => {
8485 it ( 'should flip mfa fields when mfa state changed' , ( ) => {
8586 accountServiceSpy . getAccountData . and . returnValue (
8687 of ( {
88+ id : 'id' ,
8789 activated : true ,
8890 authorities : [ 'test' , 'test' ] ,
8991 email : 'email@email.com' ,
@@ -115,6 +117,7 @@ describe('SettingsComponent', () => {
115117 it ( 'should flip mfa fields when mfa state changed' , ( ) => {
116118 accountServiceSpy . getAccountData . and . returnValue (
117119 of ( {
120+ id : 'id' ,
118121 activated : true ,
119122 authorities : [ 'test' , 'test' ] ,
120123 email : 'email@email.com' ,
@@ -141,6 +144,7 @@ describe('SettingsComponent', () => {
141144 it ( 'save mfa enabled should call account service enable' , ( ) => {
142145 accountServiceSpy . getAccountData . and . returnValue (
143146 of ( {
147+ id : 'id' ,
144148 activated : true ,
145149 authorities : [ 'test' , 'test' ] ,
146150 email : 'email@email.com' ,
@@ -169,6 +173,7 @@ describe('SettingsComponent', () => {
169173 it ( 'save mfa enabled should call account service disable' , ( ) => {
170174 accountServiceSpy . getAccountData . and . returnValue (
171175 of ( {
176+ id : 'id' ,
172177 activated : true ,
173178 authorities : [ 'test' , 'test' ] ,
174179 email : 'email@email.com' ,
@@ -185,6 +190,7 @@ describe('SettingsComponent', () => {
185190 )
186191 accountServiceSpy . getMfaSetup . and . returnValue ( of ( { secret : 'test' , otp : 'test' , qrCode : [ 'test' ] } ) )
187192 accountServiceSpy . disableMfa . and . returnValue ( of ( true ) )
193+ fixture . detectChanges ( )
188194
189195 component . mfaForm . patchValue ( { mfaEnabled : false , verificationCode : 'test' } )
190196 component . saveMfa ( )
@@ -197,6 +203,7 @@ describe('SettingsComponent', () => {
197203 accountServiceSpy . save . and . returnValue ( of ( true ) )
198204 accountServiceSpy . getAccountData . and . returnValue (
199205 of ( {
206+ id : 'id' ,
200207 activated : true ,
201208 authorities : [ 'test' , 'test' ] ,
202209 email : 'email@email.com' ,
@@ -222,6 +229,7 @@ describe('SettingsComponent', () => {
222229 accountServiceSpy . save . and . returnValue ( of ( false ) )
223230 accountServiceSpy . getAccountData . and . returnValue (
224231 of ( {
232+ id : 'id' ,
225233 activated : true ,
226234 authorities : [ 'test' , 'test' ] ,
227235 email : 'email@email.com' ,
0 commit comments