Skip to content

Commit

Permalink
test added
Browse files Browse the repository at this point in the history
  • Loading branch information
lassopicasso committed Feb 14, 2025
1 parent 87fc747 commit 4483e78
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ describe('designViewUtils', () => {
expect(nameErrorkey).toEqual('ux_editor.pages_error_unique');
});

it('return null when new name is the same as old name but with uppercase', () => {
const nameErrorkey = getPageNameErrorKey(
mockOldName.toUpperCase(),
mockOldName,
mockLayoutOrder,
);
expect(nameErrorkey).toEqual(null);
});

it('returns empty error key when name is empty', () => {
const nameErrorkey = getPageNameErrorKey(
mockNewNameCandidateEmpty,
Expand Down

0 comments on commit 4483e78

Please sign in to comment.