Skip to content

Commit

Permalink
rename tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adomi committed Nov 12, 2020
1 parent 86060ef commit 1f6a41f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ describe('ProcessFiltersCloudComponent', () => {
component.ngOnChanges({ 'appName': change });
});

it('should emit an event when a filter is selected', (done) => {
it('should filterClicked emit when a filter is clicked from the UI', (done) => {
spyOn(processFilterService, 'getProcessFilters').and.returnValue(fakeGlobalFilterObservable);

component.filterParam = { id: '10' };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ describe('ServiceTaskFiltersCloudComponent', () => {
expect(component.filterSelected.emit).toHaveBeenCalledWith(fakeGlobalServiceFilters[0]);
});

it('should emit the clicked filter', async () => {
it('should filterClicked emit when a filter is clicked from the UI', async () => {
spyOn(serviceTaskFilterCloudService, 'getTaskListFilters').and.returnValue(fakeGlobalFilterObservable);
spyOn(component.filterClicked, 'emit');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ describe('TaskFiltersCloudComponent', () => {
expect(component.filterSelected.emit).toHaveBeenCalledWith(fakeGlobalFilter[0]);
}));

it('should emit the clicked filter', async () => {
it('should filterClicked emit when a filter is clicked from the UI', async () => {
spyOn(taskFilterService, 'getTaskListFilters').and.returnValue(fakeGlobalFilterObservable);
spyOn(component.filterClicked, 'emit');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('ProcessFiltersComponent', () => {
fixture.detectChanges();
});

it('should emit the clicked filter', async () => {
it('should filterClicked emit when a filter is clicked from the UI', async () => {
filterList.filters = fakeProcessFilters;
spyOn(filterList.filterClicked, 'emit');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ describe('TaskFiltersComponent', () => {
expect(component.filterSelected.emit).toHaveBeenCalledWith(fakeTaskFilters[0]);
});

it('should emit the clicked filter', async () => {
it('should filterClicked emit when a filter is clicked from the UI', async () => {
component.filters = fakeTaskFilters;
spyOn(component.filterClicked, 'emit');

Expand Down

0 comments on commit 1f6a41f

Please sign in to comment.