mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-30 18:15:11 +00:00
ACS-7600 fix tests
This commit is contained in:
parent
a08af0bb9d
commit
6c4af486be
@ -56,7 +56,7 @@ describe('LegalHoldsService', () => {
|
||||
id: holdId,
|
||||
name: 'some name'
|
||||
}
|
||||
];
|
||||
] as Hold[];
|
||||
|
||||
spyOn(service.legalHoldApi, 'bulkAssignHold').and.returnValue(Promise.resolve(mockBulkResponse));
|
||||
});
|
||||
@ -79,7 +79,7 @@ describe('LegalHoldsService', () => {
|
||||
|
||||
describe('assignHold', () => {
|
||||
it('should assign node to existing hold', (done) => {
|
||||
const mockResponse = { entry: { id: holdId } };
|
||||
const mockResponse = { entry: { id: holdId } } as HoldEntry;
|
||||
spyOn(service.legalHoldApi, 'assignHold').and.returnValue(Promise.resolve(mockResponse));
|
||||
|
||||
service.assignHold(nodeId, holdId).subscribe((holds) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user