mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Angular 18 upgrade (#4448)
This commit is contained in:
committed by
GitHub
parent
4357fe9c08
commit
74e82c85a4
@@ -22,13 +22,13 @@
|
||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { TestBed, fakeAsync, tick } from '@angular/core/testing';
|
||||
import { fakeAsync, TestBed, tick } from '@angular/core/testing';
|
||||
import { AppTestingModule } from '../../testing/app-testing.module';
|
||||
import { ViewerEffects } from './viewer.effects';
|
||||
import { EffectsModule } from '@ngrx/effects';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { Router } from '@angular/router';
|
||||
import { ViewFileAction, ViewNodeAction, SetSelectedNodesAction, SetCurrentFolderAction } from '@alfresco/aca-shared/store';
|
||||
import { SetCurrentFolderAction, SetSelectedNodesAction, ViewFileAction, ViewNodeAction } from '@alfresco/aca-shared/store';
|
||||
import { MatDialogModule } from '@angular/material/dialog';
|
||||
|
||||
describe('ViewerEffects', () => {
|
||||
@@ -58,6 +58,7 @@ describe('ViewerEffects', () => {
|
||||
tick(100);
|
||||
expect(router.navigateByUrl).toHaveBeenCalledWith('/folder1/preview/someId');
|
||||
}));
|
||||
|
||||
it('should preview file from payload', fakeAsync(() => {
|
||||
const node: any = { entry: { isFile: true, id: 'someId' } };
|
||||
store.dispatch(new ViewFileAction(node));
|
||||
|
Reference in New Issue
Block a user