mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
unit test fixes
This commit is contained in:
@@ -420,7 +420,7 @@ describe('FilesComponent', () => {
|
||||
component.load();
|
||||
|
||||
expect(component.paging).toBe(page);
|
||||
expect(component.pagination).toBe(page.list.pagination);
|
||||
expect(component.pagination).toEqual(page.list.pagination);
|
||||
});
|
||||
|
||||
it('raise error on fail', () => {
|
||||
|
@@ -104,7 +104,7 @@ describe('PageComponent', () => {
|
||||
});
|
||||
|
||||
it('sets component pagination data', () => {
|
||||
expect(component.pagination).toBe(page.list.pagination);
|
||||
expect(component.pagination).toEqual(page.list.pagination);
|
||||
});
|
||||
|
||||
it('sets component isEmpty state', () => {
|
||||
|
@@ -54,7 +54,6 @@ describe('RecentFiles Routed Component', () => {
|
||||
let contentService: ContentManagementService;
|
||||
let preferenceService: UserPreferencesService;
|
||||
let page;
|
||||
let person;
|
||||
|
||||
beforeEach(() => {
|
||||
page = {
|
||||
@@ -63,8 +62,6 @@ describe('RecentFiles Routed Component', () => {
|
||||
pagination: { data: 'data'}
|
||||
}
|
||||
};
|
||||
|
||||
person = { entry: { id: 'bogus' } };
|
||||
});
|
||||
|
||||
beforeEach(async(() => {
|
||||
|
Reference in New Issue
Block a user