Skip to content

Commit

Permalink
test: fix tests after refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Dec 3, 2024
1 parent a6032ff commit b2e7e6e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Item/AppItem/__tests__/getIframeSrc.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ describe('getIframeSrc', () => {
it('no ou filter', () => {
const ouFilter = []

const src = getIframeSrc(appDetails, dashboardItem, { ou: ouFilter })
const src = getIframeSrc(dashboardItem, { ou: ouFilter }, appDetails)
expect(src).toEqual(expectedSrc)
})

Expand All @@ -26,7 +26,7 @@ describe('getIframeSrc', () => {
},
]

const src = getIframeSrc(appDetails, dashboardItem, { ou: ouFilter })
const src = getIframeSrc(dashboardItem, { ou: ouFilter }, appDetails)
expect(src).toEqual(
`${expectedSrc}&userOrgUnit=fdc6uOvgoji,lc3eMKXaEfw`
)
Expand All @@ -45,7 +45,7 @@ describe('getIframeSrc', () => {
},
]

const src = getIframeSrc(appDetails, dashboardItem, { ou: ouFilter })
const src = getIframeSrc(dashboardItem, { ou: ouFilter }, appDetails)
expect(src).toEqual(
`${expectedSrc}&userOrgUnit=OU_GROUP-b0EsAxm8Nge,lc3eMKXaEfw`
)
Expand All @@ -64,7 +64,7 @@ describe('getIframeSrc', () => {
},
]

const src = getIframeSrc(appDetails, dashboardItem, { ou: ouFilter })
const src = getIframeSrc(dashboardItem, { ou: ouFilter }, appDetails)
expect(src).toEqual(
`${expectedSrc}&userOrgUnit=LEVEL-m9lBJogzE95,fdc6uOvgoji`
)
Expand All @@ -78,7 +78,7 @@ describe('getIframeSrc', () => {
},
]

const src = getIframeSrc(appDetails, dashboardItem, { ou: ouFilter })
const src = getIframeSrc(dashboardItem, { ou: ouFilter }, appDetails)
expect(src).toEqual(`${expectedSrc}&userOrgUnit=USER_ORGUNIT`)
})

Expand All @@ -98,7 +98,7 @@ describe('getIframeSrc', () => {
},
]

const src = getIframeSrc(appDetails, dashboardItem, { ou: ouFilter })
const src = getIframeSrc(dashboardItem, { ou: ouFilter }, appDetails)
expect(src).toEqual(
`${expectedSrc}&userOrgUnit=USER_ORGUNIT_CHILDREN,USER_ORGUNIT_GRANDCHILDREN,USER_ORGUNIT`
)
Expand Down

0 comments on commit b2e7e6e

Please sign in to comment.