diff options
Diffstat (limited to 'Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts')
-rw-r--r-- | Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts b/Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts index 70922623..49b7bbc4 100644 --- a/Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts +++ b/Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts @@ -5,6 +5,7 @@ import { TodoListService, WorkItem, AzureDevOpsAccessInfo, WiqlResult, WiqlWorkItemResult, WorkItemResult, WorkItemTypeResult } from './todo-list.service'; +import { toArray } from 'rxjs/operators'; describe('TodoListServiceService', () => { @@ -41,7 +42,7 @@ describe('TodoListServiceService', () => { const workItemTypeMap = new Map<WorkItem, string>(Array.from(mockWorkItems, v => <[WorkItem, string]>[v, 'type' + v.id])); - service.getWorkItemList().subscribe(data => { + service.getWorkItemList().pipe(toArray()).subscribe(data => { expect(data).toEqual(mockWorkItems); }); @@ -87,5 +88,7 @@ describe('TodoListServiceService', () => { } }); } + + httpController.verify(); }); }); |