Skip to content

Commit

Permalink
* Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sivakumar414ram committed Apr 28, 2021
1 parent 8643ad3 commit 714bad3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ describe('TaskFiltersComponent', () => {
const defaultTaskFiltersMock = [
{ name: 'dafult-my-filter' },
{ name: 'dafult-involved-filter' },
{ name: 'dafult-completed-filter' },
]
{ name: 'dafult-completed-filter' }
];
spyOn(taskFilterService, 'createDefaultFilters').and.returnValue(of(defaultTaskFiltersMock));
const appId = '2';
const change = new SimpleChange(null, appId, true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ describe('TaskFormComponent', () => {

describe('Task form action buttons', () => {

it('Task form action status when candidate user is not have a access to the task claimed by another candidate user', async() => {
it('Should disable Complete button when candidate user is not have a access to the task claimed by another candidate user', async() => {
getTaskDetailsSpy.and.returnValue(of(involvedUserTaskForm));
component.taskId = 'mock-task-id';
fixture.detectChanges();
Expand Down Expand Up @@ -921,7 +921,7 @@ describe('TaskFormComponent', () => {
});

it('Should show only the Claim button as enabled before claiming a task without form', async() => {
const claimableTaskDetailsWithoutFormMock = { ...claimableTaskDetailsMock, formKey: null }
const claimableTaskDetailsWithoutFormMock = { ...claimableTaskDetailsMock, formKey: null };
getTaskDetailsSpy.and.returnValue(of(claimableTaskDetailsWithoutFormMock));
component.taskId = 'mock-task-id';
fixture.detectChanges();
Expand All @@ -942,7 +942,7 @@ describe('TaskFormComponent', () => {
});

it('Should show only Complete/Release buttons as enabled after claiming a task without form', async() => {
const claimedTaskDetailsWithoutFormMock = { ...claimedTaskDetailsMock, formKey: null }
const claimedTaskDetailsWithoutFormMock = { ...claimedTaskDetailsMock, formKey: null };
getBpmLoggedUserSpy.and.returnValue(of(claimedTaskDetailsWithoutFormMock.assignee));
getTaskDetailsSpy.and.returnValue(of(claimedTaskDetailsWithoutFormMock));
component.taskId = 'mock-task-id';
Expand All @@ -962,5 +962,5 @@ describe('TaskFormComponent', () => {
expect(releaseButton.nativeElement.disabled).toBe(false, 'Release button is disabled');
expect(claimButton).toBeNull();
});
})
});
});

0 comments on commit 714bad3

Please sign in to comment.