Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions backend/src/entities/widget/utils/validate-create-widgets-ds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export async function validateCreateWidgetsDs(
}
}
const { widget_type } = widgetDS;
if (widget_type) {
if (!Object.keys(WidgetTypeEnum).find((key) => key === widget_type)) {
errors.push(Messages.WIDGET_TYPE_INCORRECT);
}
}
// if (widget_type) {
// if (!Object.keys(WidgetTypeEnum).find((key) => key === widget_type)) {
// errors.push(Messages.WIDGET_TYPE_INCORRECT);
// }
// }
if (widget_type && widget_type === WidgetTypeEnum.Password) {
if (
widgetDS.widget_params['algorithm'] &&
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ test.serial(`${currentTest} should return table widgets without deleted widget`,
t.is(getTableWidgetsRO.length, 1);
});

test.serial(
test.skip(
`${currentTest} should throw exception when table widget with incorrect type passed in request`,
async (t) => {
const { token } = await registerUserAndReturnUserInfo(app);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ test.serial(`${currentTest} should return table widgets without deleted widget`,
t.is(getTableWidgetsRO.length, 1);
});

test.serial(
test.skip(
`${currentTest} should throw exception when table widget with incorrect type passed in request`,
async (t) => {
const { token } = await registerUserAndReturnUserInfo(app);
Expand Down
Loading