mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Ban xit and xdescribe use in the future (#4923)
* remove xit test and ban xit and xdescribe use in the future * remove xit test and ban xit and xdescribe use in the future * remove test excluded * remove consecutive blank line
This commit is contained in:
@@ -40,7 +40,6 @@ class TestComponent {
|
||||
describe('FolderEditDirective', () => {
|
||||
let fixture: ComponentFixture<TestComponent>;
|
||||
let element;
|
||||
let node: any;
|
||||
let dialog: MatDialog;
|
||||
let contentService: ContentService;
|
||||
let dialogRefMock;
|
||||
@@ -68,8 +67,6 @@ describe('FolderEditDirective', () => {
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
node = { entry: { id: 'folderId' } };
|
||||
|
||||
dialogRefMock = {
|
||||
afterClosed: (val) => of(val),
|
||||
componentInstance: {
|
||||
@@ -81,18 +78,6 @@ describe('FolderEditDirective', () => {
|
||||
spyOn(dialog, 'open').and.returnValue(dialogRefMock);
|
||||
});
|
||||
|
||||
xit('should emit folderEdit event when input value is not undefined', (done) => {
|
||||
spyOn(dialogRefMock, 'afterClosed').and.returnValue(of(node));
|
||||
|
||||
contentService.folderEdit.subscribe((val) => {
|
||||
expect(val).toBe(node);
|
||||
done();
|
||||
});
|
||||
|
||||
element.triggerEventHandler('click', event);
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should not emit folderEdit event when input value is undefined', () => {
|
||||
spyOn(dialogRefMock, 'afterClosed').and.returnValue(of(null));
|
||||
spyOn(contentService.folderEdit, 'next');
|
||||
|
Reference in New Issue
Block a user