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();
|
component.load();
|
||||||
|
|
||||||
expect(component.paging).toBe(page);
|
expect(component.paging).toBe(page);
|
||||||
expect(component.pagination).toBe(page.list.pagination);
|
expect(component.pagination).toEqual(page.list.pagination);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('raise error on fail', () => {
|
it('raise error on fail', () => {
|
||||||
|
@ -104,7 +104,7 @@ describe('PageComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('sets component pagination data', () => {
|
it('sets component pagination data', () => {
|
||||||
expect(component.pagination).toBe(page.list.pagination);
|
expect(component.pagination).toEqual(page.list.pagination);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('sets component isEmpty state', () => {
|
it('sets component isEmpty state', () => {
|
||||||
|
@ -54,7 +54,6 @@ describe('RecentFiles Routed Component', () => {
|
|||||||
let contentService: ContentManagementService;
|
let contentService: ContentManagementService;
|
||||||
let preferenceService: UserPreferencesService;
|
let preferenceService: UserPreferencesService;
|
||||||
let page;
|
let page;
|
||||||
let person;
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
page = {
|
page = {
|
||||||
@ -63,8 +62,6 @@ describe('RecentFiles Routed Component', () => {
|
|||||||
pagination: { data: 'data'}
|
pagination: { data: 'data'}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
person = { entry: { id: 'bogus' } };
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user