Commits
Tim Donohue authored 9f1a017b56d
1 1 | import { NO_ERRORS_SCHEMA } from '@angular/core'; |
2 - | import { async, ComponentFixture, TestBed } from '@angular/core/testing'; |
2 + | import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; |
3 3 | import { NgxGalleryOptions } from '@kolkov/ngx-gallery'; |
4 4 | import { Bitstream } from '../../../core/shared/bitstream.model'; |
5 5 | import { MediaViewerItem } from '../../../core/shared/media-viewer-item.model'; |
6 6 | import { MockBitstreamFormat1 } from '../../../shared/mocks/item.mock'; |
7 7 | |
8 8 | import { MediaViewerImageComponent } from './media-viewer-image.component'; |
9 9 | |
10 10 | import { of as observableOf } from 'rxjs'; |
11 11 | import { AuthService } from '../../../core/auth/auth.service'; |
12 12 | |
48 48 | }); |
49 49 | |
50 50 | const mockMediaViewerItems: MediaViewerItem[] = Object.assign( |
51 51 | new Array<MediaViewerItem>(), |
52 52 | [ |
53 53 | { bitstream: mockBitstream, format: 'image', thumbnail: null }, |
54 54 | { bitstream: mockBitstream, format: 'image', thumbnail: null }, |
55 55 | ] |
56 56 | ); |
57 57 | |
58 - | beforeEach(async(() => { |
58 + | beforeEach(waitForAsync(() => { |
59 59 | TestBed.configureTestingModule({ |
60 60 | imports:[], |
61 61 | declarations: [MediaViewerImageComponent], |
62 62 | schemas: [NO_ERRORS_SCHEMA], |
63 63 | providers: [ |
64 64 | { provide: AuthService, useValue: authService }, |
65 65 | ], |
66 66 | }).compileComponents(); |
67 67 | })); |
68 68 | |