Skip to content

Commit

Permalink
NAS-129891: PR update
Browse files Browse the repository at this point in the history
(cherry picked from commit fb91e18)
  • Loading branch information
AlexKarpov98 authored and bugclerk committed Oct 13, 2024
1 parent 1bb4779 commit aa4f2b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('ActiveDirectoryComponent', () => {
}),
mockProvider(DialogService, {
jobDialog: jest.fn(() => ({
afterClosed: () => of(null),
afterClosed: () => of({}),
})),
}),
mockProvider(SnackbarService),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('LdapComponent', () => {
}),
mockProvider(DialogService, {
jobDialog: jest.fn(() => ({
afterClosed: () => of(null),
afterClosed: () => of({}),
})),
}),
mockProvider(SnackbarService),
Expand Down Expand Up @@ -134,7 +134,7 @@ describe('LdapComponent', () => {
const rebuildCacheButton = await loader.getHarness(MatButtonHarness.with({ text: 'Rebuild Directory Service Cache' }));
await rebuildCacheButton.click();

expect(spectator.inject(SystemGeneralService).refreshDirServicesCache).toHaveBeenCalled();
expect(spectator.inject(DialogService).jobDialog).toHaveBeenCalled();
expect(spectator.inject(SnackbarService).success).toHaveBeenCalledWith(
helptextLdap.ldap_custactions_clearcache_dialog_message,
);
Expand Down

0 comments on commit aa4f2b2

Please sign in to comment.