forked from twentyhq/twenty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a few tests and remove a few unused files to raise code coverage a bit
- Loading branch information
1 parent
d2fe310
commit 0a21a16
Showing
7 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
packages/twenty-front/src/modules/activities/utils/getActivityTargetObjectFieldName.ts
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
packages/twenty-front/src/modules/ui/layout/right-drawer/components/RightDrawer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
packages/twenty-front/src/utils/__tests__/isValidUuid.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { isValidUuid } from '~/utils/isValidUuid'; | ||
|
||
describe('isValidUuid', () => { | ||
it('returns true if value is a valid UUID', () => { | ||
expect(isValidUuid('bec09e27-4ecc-4a85-afc1-f2c0ace28bfa')).toBe(true); | ||
}); | ||
|
||
it('returns false if value is not a valid UUID', () => { | ||
expect(isValidUuid('123e4567-e89b-12d3-a456-42661417400')).toBe(false); | ||
}); | ||
}); |