-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: FE tests for prime admin approval
- Loading branch information
Showing
14 changed files
with
437 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 29 additions & 8 deletions
37
bciers/apps/administration/tests/components/operators/mocks.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,43 @@ | ||
const getCurrentOperator = vi.fn(); | ||
const getBusinessStructures = vi.fn(); | ||
|
||
const getOperator = vi.fn(); | ||
const getOperatorHasAdmin = vi.fn(); | ||
const getOperatorConfirmationInfo = vi.fn(); | ||
const getOperatorAccessDeclined = vi.fn(); | ||
|
||
vi.mock( | ||
"apps/administration/app/components/operators/getCurrentOperator", | ||
() => ({ | ||
default: getCurrentOperator, | ||
}), | ||
); | ||
|
||
vi.mock("apps/administration/app/components/operators/getOperator", () => ({ | ||
default: getOperator, | ||
})); | ||
vi.mock( | ||
"apps/administration/app/components/operators/getBusinessStructures", | ||
"apps/administration/app/components/operators/getOperatorHasAdmin", | ||
() => ({ | ||
default: getBusinessStructures, | ||
default: getOperatorHasAdmin, | ||
}), | ||
); | ||
|
||
vi.mock( | ||
"apps/administration/app/components/operators/getOperatorConfirmationInfo", | ||
() => ({ | ||
default: getOperatorConfirmationInfo, | ||
}), | ||
); | ||
vi.mock( | ||
"apps/administration/app/components/operators/getOperatorAccessDeclined", | ||
() => ({ | ||
default: getOperatorAccessDeclined, | ||
}), | ||
); | ||
vi.mock("@/administration/app/components/operators/getOperator", () => ({ | ||
default: getOperator, | ||
})); | ||
|
||
export { getCurrentOperator, getBusinessStructures, getOperator }; | ||
export { | ||
getCurrentOperator, | ||
getOperator, | ||
getOperatorHasAdmin, | ||
getOperatorConfirmationInfo, | ||
getOperatorAccessDeclined, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.