Skip to content

Commit

Permalink
[ACS-9012] Unit test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKinas committed Dec 5, 2024
1 parent 9d97dfd commit d501b8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ describe('UniqueSearchNameValidator', () => {
});

it('should return error when name is not unique', (done) => {
validator.validate(new FormControl({ value: 'test', disabled: false })).subscribe((result) => {
const form = new FormControl({ value: 'test', disabled: false });
form.markAsDirty();
validator.validate(form).subscribe((result) => {
expect(result).toEqual({ message: 'APP.BROWSE.SEARCH.SAVE_SEARCH.SEARCH_NAME_NOT_UNIQUE_ERROR' });
done();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ describe('SaveSearchSidenavComponent', () => {
id: 'manage-saved-searches',
icon: '',
title: 'APP.BROWSE.SEARCH.SAVE_SEARCH.NAVBAR.MANAGE_BUTTON',
description: 'APP.BROWSE.SEARCH.SAVE_SEARCH.NAVBAR.MANAGE_BUTTON',
route: 'saved-searches',
url: 'saved-searches'
}
Expand All @@ -84,6 +85,7 @@ describe('SaveSearchSidenavComponent', () => {
expect(component.item.children[0]).toEqual({
icon: '',
title: '1',
description: '1',
route: 'search?q=abc',
url: 'search?q=abc',
id: 'search1'
Expand Down

0 comments on commit d501b8d

Please sign in to comment.