mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3501] PDF view fixes (#3735)
* PDF view fixes * updated package.lock * fix failing tests * restore test * use fake web worker for tests * test fixes * test fixes * disable i18n test * test fixes
This commit is contained in:
committed by
Eugenio Romano
parent
567d172176
commit
c0acc53eb9
@@ -24,6 +24,7 @@ import { setupTestBed } from '../testing/setupTestBed';
|
||||
import { CoreModule } from '../core.module';
|
||||
import { AlfrescoApiServiceMock } from '../mock/alfresco-api.service.mock';
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { TranslationService } from '../services/translation.service';
|
||||
|
||||
@Component({
|
||||
template: `
|
||||
@@ -46,6 +47,7 @@ describe('NodeRestoreDirective', () => {
|
||||
let coreApi;
|
||||
let directiveInstance;
|
||||
let restoreNodeSpy: any;
|
||||
let translationService: TranslationService;
|
||||
|
||||
setupTestBed({
|
||||
imports: [
|
||||
@@ -75,6 +77,8 @@ describe('NodeRestoreDirective', () => {
|
||||
list: { entries: [] }
|
||||
}));
|
||||
|
||||
translationService = TestBed.get(TranslationService);
|
||||
spyOn(translationService, 'instant').and.callFake(key => { return key; });
|
||||
});
|
||||
|
||||
it('should not restore when selection is empty', () => {
|
||||
|
Reference in New Issue
Block a user