prepare tests for ng-12 upgrade (#7099)

* prepare tests for ng12 upgrade

* fix lint

* fix tests

* test fixes

* fix code and tests

* fix code and tests

* test fixes

* test fixes
This commit is contained in:
Denys Vuika
2021-06-11 07:36:32 +01:00
committed by GitHub
parent 558056b05c
commit eb71a79d1e
112 changed files with 982 additions and 1057 deletions

View File

@@ -16,7 +16,8 @@
*/
import { EcmCompanyModel } from '../models/ecm-company.model';
import { PersonEntry, Person } from '@alfresco/js-api';
import { PersonEntry, Person, PersonPaging } from '@alfresco/js-api';
import { EcmUserModel } from '../models';
export const fakeEcmCompany: EcmCompanyModel = {
organization: 'company-fake-name',
@@ -29,7 +30,7 @@ export const fakeEcmCompany: EcmCompanyModel = {
email: 'fakeCompany@fake.com'
};
export const fakeEcmUser = {
export const fakeEcmUser = new EcmUserModel({
id: 'fake-id',
firstName: 'fake-ecm-first-name',
lastName: 'fake-ecm-last-name',
@@ -48,7 +49,7 @@ export const fakeEcmUser = {
userStatus: 'active',
enabled: true,
emailNotificationsEnabled: true
};
});
export const fakeEcmUser2 = {
id: 'another-fake-id',
@@ -103,7 +104,7 @@ export const fakeEcmEditedUser = {
emailNotificationsEnabled: true
};
export const fakeEcmUserList = {
export const fakeEcmUserList = new PersonPaging({
list: {
pagination: {
count: 2,
@@ -121,7 +122,7 @@ export const fakeEcmUserList = {
}
]
}
};
});
export const createNewPersonMock = {
id: 'fake-id',