Skip to content

Commit 37dccb8

Browse files
committed
fix: removed not requied changes
1 parent 435a028 commit 37dccb8

1 file changed

Lines changed: 1 addition & 24 deletions

File tree

src/visualBuilder/components/__test__/FieldLocationAppList.test.tsx

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,6 @@ vi.mock("../../visualBuilder.style", () => ({
2828
}),
2929
}));
3030

31-
vi.mock("classnames", () => ({
32-
default: (...args: any[]) => {
33-
const classes: string[] = [];
34-
args.forEach(arg => {
35-
if (typeof arg === 'string') {
36-
classes.push(arg);
37-
} else if (typeof arg === 'object' && arg !== null) {
38-
Object.entries(arg).forEach(([className, condition]) => {
39-
if (condition) {
40-
classes.push(className);
41-
}
42-
});
43-
}
44-
});
45-
return classes.join(' ');
46-
},
47-
}));
48-
4931
vi.mock("../icons/EmptyAppIcon", () => ({
5032
EmptyAppIcon: ({ id }: { id: string }) => <div data-testid={`empty-app-icon-${id}`}>Empty Icon</div>,
5133
}));
@@ -214,12 +196,7 @@ describe("FieldLocationAppList", () => {
214196
expect(appList).toHaveClass("visual-builder__field-location-app-list--left");
215197
});
216198

217-
it("should handle empty apps array", () => {
218-
render(<FieldLocationAppList apps={[]} position="right" toolbarRef={mockToolbarRef} domEditStack={[]} setDisplayAllApps={() => {}} displayAllApps={true} />);
219-
220-
expect(screen.getByText("No matching results found!")).toBeInTheDocument();
221-
});
222-
199+
223200
it("should handle single app (which gets filtered out)", () => {
224201
const singleApp = [mockApps[0]];
225202
render(<FieldLocationAppList apps={singleApp} position="right" toolbarRef={mockToolbarRef} domEditStack={[]} setDisplayAllApps={() => {}} displayAllApps={true} />);

0 commit comments

Comments
 (0)