unit test fixes

This commit is contained in:
Denys Vuika 2018-04-20 08:24:17 +01:00
parent f5f0c27778
commit 6ba683258e
3 changed files with 2 additions and 5 deletions

View File

@ -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', () => {

View File

@ -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', () => {

View File

@ -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(() => {