I try to write test cases for these two functions with jest but anyone have better idea to test this code functionality [closed]
import { LuiMaterialTableColumn } from "@jda/lui-common-component-library/dist/components/LuiMaterialTable/types"; import { LuiToggleButtonProps } from "@jda/lui-common-component-library/dist/components/LuiToggleButtonGroup";
import { formatDate } from "utils/formatDate";
const columns: LuiMaterialTableColumn[] = [ { title: "Name", field: "name", }, { title: "Data source", field: "data_type", }, { title: "Created On", field: "last_modified_at", render: ({ last_modified_at }) => formatDate(last_modified_at), }, { title: "Modified On", field: "last_modified_at", render: ({ last_modified_at }) => formatDate(last_modified_at), }, { title: "Created by", field: "created_by", }, { title: "Properties", field: "version", }, ];
const tabs: LuiToggleButtonProps[] = [ { id: 1, value: "All", }, { id: 2, value: "Created by Me", }, ];
export const config = { columns, tabs };
Comments
Post a Comment