mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
unit test fixes
This commit is contained in:
parent
f5f0c27778
commit
6ba683258e
@ -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(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user