1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-18 09:30:06 +00:00

feat(auth): added multi-language support to logIn method

This commit is contained in:
Yury
2024-06-20 17:15:05 +03:00
parent 4c4511913c
commit 053b07769a
9 changed files with 169 additions and 14 deletions

View File

@@ -3,6 +3,7 @@
*/
import { verifySasViyaLogin } from '../verifySasViyaLogin'
import * as delayModule from '../../utils/delay'
import { enLoginSuccessHeader } from '../AuthManager'
describe('verifySasViyaLogin', () => {
const serverUrl = 'http://test-server.com'
@@ -19,7 +20,7 @@ describe('verifySasViyaLogin', () => {
const popup = {
window: {
location: { href: serverUrl + `/SASLogon` },
document: { body: { innerText: '<h3>You have signed in.</h3>' } }
document: { body: { innerText: `<h3>${enLoginSuccessHeader}</h3>` } }
}
} as unknown as Window