aboutsummaryrefslogtreecommitdiff
path: root/Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-02-25 00:40:27 +0800
committercrupest <crupest@outlook.com>2019-02-25 00:40:27 +0800
commitad16dbe268984d639c4924fb8bb1e69e68c0fef7 (patch)
tree545c805dbd163da10845dfc352a4b3fe8e5ec01b /Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts
parent5e3896fee6b0d376cb7c3f1927596a8ed00e40e4 (diff)
downloadtimeline-ad16dbe268984d639c4924fb8bb1e69e68c0fef7.tar.gz
timeline-ad16dbe268984d639c4924fb8bb1e69e68c0fef7.tar.bz2
timeline-ad16dbe268984d639c4924fb8bb1e69e68c0fef7.zip
Add entrance animation of todo item.
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();
});
});