mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
fixed lint issues
This commit is contained in:
@@ -229,7 +229,7 @@ describe('AdminSidebarComponent', () => {
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
|
|
||||||
describe('for site admin', () => {
|
describe('for site admin', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
@@ -244,20 +244,20 @@ describe('AdminSidebarComponent', () => {
|
|||||||
|
|
||||||
it('should contain site admin section', () => {
|
it('should contain site admin section', () => {
|
||||||
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
||||||
id: 'admin_search', visible: true,
|
id: 'admin_search', visible: true,
|
||||||
}));
|
}));
|
||||||
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
||||||
id: 'registries', visible: true,
|
id: 'registries', visible: true,
|
||||||
}));
|
}));
|
||||||
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
||||||
parentID: 'registries', visible: true,
|
parentID: 'registries', visible: true,
|
||||||
}));
|
}));
|
||||||
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
||||||
id: 'curation_tasks', visible: true,
|
id: 'curation_tasks', visible: true,
|
||||||
}));
|
}));
|
||||||
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
||||||
id: 'workflow', visible: true,
|
id: 'workflow', visible: true,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -274,8 +274,8 @@ describe('AdminSidebarComponent', () => {
|
|||||||
|
|
||||||
it('should show edit_community', () => {
|
it('should show edit_community', () => {
|
||||||
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
||||||
id: 'edit_community', visible: true,
|
id: 'edit_community', visible: true,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -292,8 +292,8 @@ describe('AdminSidebarComponent', () => {
|
|||||||
|
|
||||||
it('should show edit_collection', () => {
|
it('should show edit_collection', () => {
|
||||||
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
||||||
id: 'edit_collection', visible: true,
|
id: 'edit_collection', visible: true,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -310,11 +310,11 @@ describe('AdminSidebarComponent', () => {
|
|||||||
|
|
||||||
it('should show access control section', () => {
|
it('should show access control section', () => {
|
||||||
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
||||||
id: 'access_control', visible: true,
|
id: 'access_control', visible: true,
|
||||||
}));
|
}));
|
||||||
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
expect(menuService.addSection).toHaveBeenCalledWith(comp.menuID, jasmine.objectContaining({
|
||||||
parentID: 'access_control', visible: true,
|
parentID: 'access_control', visible: true,
|
||||||
}));
|
}));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -301,7 +301,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
menuList.forEach((menuSection) => this.menuService.addSection(this.menuID, Object.assign(menuSection, {
|
menuList.forEach((menuSection) => this.menuService.addSection(this.menuID, Object.assign(menuSection, {
|
||||||
shouldPersistOnRouteChange: true
|
shouldPersistOnRouteChange: true
|
||||||
})));
|
})));
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -589,7 +589,7 @@ export class AdminSidebarComponent extends MenuComponent implements OnInit {
|
|||||||
menuList.forEach((menuSection) => this.menuService.addSection(this.menuID, Object.assign(menuSection, {
|
menuList.forEach((menuSection) => this.menuService.addSection(this.menuID, Object.assign(menuSection, {
|
||||||
shouldPersistOnRouteChange: true,
|
shouldPersistOnRouteChange: true,
|
||||||
})));
|
})));
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user