mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
Angular 18 upgrade
This commit is contained in:
parent
709e65aae2
commit
6a511cfb01
@ -22,13 +22,13 @@
|
|||||||
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
* 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 { AppTestingModule } from '../../testing/app-testing.module';
|
||||||
import { ViewerEffects } from './viewer.effects';
|
import { ViewerEffects } from './viewer.effects';
|
||||||
import { EffectsModule } from '@ngrx/effects';
|
import { EffectsModule } from '@ngrx/effects';
|
||||||
import { Store } from '@ngrx/store';
|
import { Store } from '@ngrx/store';
|
||||||
import { Router } from '@angular/router';
|
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';
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
|
|
||||||
describe('ViewerEffects', () => {
|
describe('ViewerEffects', () => {
|
||||||
@ -56,7 +56,7 @@ describe('ViewerEffects', () => {
|
|||||||
|
|
||||||
store.dispatch(new ViewFileAction());
|
store.dispatch(new ViewFileAction());
|
||||||
tick(100);
|
tick(100);
|
||||||
expect(router.navigateByUrl).toHaveBeenCalledWith('/folder1/preview/someId');
|
expect(router.navigateByUrl).toHaveBeenCalledWith('/node-id/preview/someId');
|
||||||
}));
|
}));
|
||||||
it('should preview file from payload', fakeAsync(() => {
|
it('should preview file from payload', fakeAsync(() => {
|
||||||
const node: any = { entry: { isFile: true, id: 'someId' } };
|
const node: any = { entry: { isFile: true, id: 'someId' } };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user