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

chore(lint): fixed linting issues

This commit is contained in:
Yury Shkoda
2022-06-20 19:26:29 +03:00
parent 1596173dda
commit 489947bcae
59 changed files with 243 additions and 236 deletions

View File

@@ -15,12 +15,12 @@ describe('verifySas9Login', () => {
})
it('should return isLoggedIn true by checking state of popup', async () => {
const popup = {
const popup = ({
window: {
location: { href: serverUrl + `/SASLogon/home` },
document: { body: { innerText: '<h3>You have signed in.</h3>' } }
}
} as unknown as Window
} as unknown) as Window
await expect(verifySas9Login(popup)).resolves.toEqual({
isLoggedIn: true
@@ -28,7 +28,7 @@ describe('verifySas9Login', () => {
})
it('should return isLoggedIn false if user closed popup, already', async () => {
const popup: Window = { closed: true } as unknown as Window
const popup: Window = ({ closed: true } as unknown) as Window
await expect(verifySas9Login(popup)).resolves.toEqual({
isLoggedIn: false