aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-02-24 17:04:29 +0000
committer杨宇千 <crupest@outlook.com>2019-02-24 17:04:29 +0000
commit472cfcb7281cf8ee9dd3f22639c1370f99f7db16 (patch)
tree545c805dbd163da10845dfc352a4b3fe8e5ec01b /Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts
parent5e3896fee6b0d376cb7c3f1927596a8ed00e40e4 (diff)
parentad16dbe268984d639c4924fb8bb1e69e68c0fef7 (diff)
downloadtimeline-472cfcb7281cf8ee9dd3f22639c1370f99f7db16.tar.gz
timeline-472cfcb7281cf8ee9dd3f22639c1370f99f7db16.tar.bz2
timeline-472cfcb7281cf8ee9dd3f22639c1370f99f7db16.zip
Merged PR 9: Add entrance animation of todo item.
Add entrance animation of todo item. Related work items: #5
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.ts5
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();
});
});