From ad16dbe268984d639c4924fb8bb1e69e68c0fef7 Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 25 Feb 2019 00:40:27 +0800 Subject: Add entrance animation of todo item. --- Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts') 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(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(); }); }); -- cgit v1.2.3