mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 12:43:24 +00:00
Fixed Small Card Form Issue and Added Tests
This commit is contained in:
parent
dbbfc7a9d8
commit
0727706d78
5 changed files with 112 additions and 26 deletions
|
@ -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} />);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue