#38: Implement messagesPerField existsError and get

This commit is contained in:
garronej
2021-10-08 01:58:15 +02:00
parent 392377bf2d
commit 92946ef6bb
3 changed files with 50 additions and 4 deletions

View File

@ -165,7 +165,9 @@ export const kcContextMocks: KcContextBase[] = [
"registrationAction": "http://localhost:8080/auth/realms/myrealm/login-actions/registration?session_code=gwZdUeO7pbYpFTRxiIxRg_QtzMbtFTKrNu6XW_f8asM&execution=12146ce0-b139-4bbd-b25b-0eccfee6577e&client_id=account&tab_id=uS8lYfebLa0"
},
"messagesPerField": {
"printIfExists": (...[, x]) => x
"printIfExists": (...[, x]) => x,
"existsError": ()=> true,
"get": key=> `Fake error for ${key}`
},
"scripts": [],
"isAppInitiatedAction": false,