Skip to content

Commit

Permalink
fix: add service availability for settings tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Perchoc <[email protected]>
  • Loading branch information
jperchoc committed Dec 12, 2024
1 parent 078e4b6 commit 2e47720
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ import { CdbError } from '@/data/api/database';
const mockedService = {
...mockedServiceOrig,
capabilities: {
service: {
update: database.service.capability.StateEnum.enabled,
},
advancedConfiguration: {
create: database.service.capability.StateEnum.enabled,
update: database.service.capability.StateEnum.enabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ import { Locale } from '@/hooks/useLocale';
const mockedService = {
...mockedServiceOrig,
capabilities: {
service: {
update: database.service.capability.StateEnum.enabled,
},
advancedConfiguration: {
create: database.service.capability.StateEnum.enabled,
update: database.service.capability.StateEnum.enabled,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ import { CdbError } from '@/data/api/database';
const mockedService = {
...mockedServiceOrig,
capabilities: {
service: {
update: database.service.capability.StateEnum.enabled,
},
maintenanceApply: {
create: database.service.capability.StateEnum.enabled,
},
Expand Down Expand Up @@ -147,6 +150,9 @@ describe('Maintenance in settings page', () => {
service: {
...mockedService,
capabilities: {
service: {
update: database.service.capability.StateEnum.enabled,
},
maintenanceApply: {
create: database.service.capability.StateEnum.disabled,
},
Expand Down

0 comments on commit 2e47720

Please sign in to comment.