Fixed Small Card Form Issue and Added Tests

This commit is contained in:
Ahmad 2025-01-01 19:02:18 -05:00
parent dbbfc7a9d8
commit 0727706d78
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
5 changed files with 112 additions and 26 deletions

View file

@ -14,21 +14,21 @@ jest.mock('@/hooks/use-action', () => ({
})),
}));
describe('BoardTitleForm', () => {
const mockBoard: Board = {
id: '1',
title: 'Test Board',
imageId: 'image1',
imageThumbUrl: 'thumb-url',
imageFullUrl: 'full-url',
imageUserName: 'user1',
imageLinkHTML: 'link-html',
imageDownloadUrl: 'download-url',
createdAt: new Date(),
updatedAt: new Date(),
orgId: 'org1',
};
const mockBoard: Board = {
id: '1',
title: 'Test Board',
imageId: 'image1',
imageThumbUrl: 'thumb-url',
imageFullUrl: 'full-url',
imageUserName: 'user1',
imageLinkHTML: 'link-html',
imageDownloadUrl: 'download-url',
createdAt: new Date(),
updatedAt: new Date(),
orgId: 'org1',
};
describe('BoardTitleForm', () => {
it('should render correctly in browser environment', () => {
render(<BoardTitleForm data={mockBoard} />);