1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 21:10:05 +00:00

feat(auth): added utils to get and check login header

This commit is contained in:
Yury
2024-06-21 11:24:06 +03:00
parent 2cca192f88
commit a90f699abd
11 changed files with 223 additions and 156 deletions

View File

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