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
commitcd28058f07fda57f6569316723f776f1b9b80e50 (patch)
treeac5133ecdb0c03c3b47885fd3fe8a2b590558316 /Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts
parent28aea0ced979675c19d78d9c38991580b20e931a (diff)
parent764c499add501af742b7098f4cc204feadbccda4 (diff)
downloadtimeline-cd28058f07fda57f6569316723f776f1b9b80e50.tar.gz
timeline-cd28058f07fda57f6569316723f776f1b9b80e50.tar.bz2
timeline-cd28058f07fda57f6569316723f776f1b9b80e50.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();
});
});