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-23 16:40:15 +0000
committer杨宇千 <crupest@outlook.com>2019-02-23 16:40:15 +0000
commit28aea0ced979675c19d78d9c38991580b20e931a (patch)
treee29e6a6ca5d8835bf4574fb657c4d956ba30370c /Timeline/ClientApp/src/app/todo-list-page/todo-list.service.spec.ts
parent5f3d6353e8e26879c538c272a151658fe38e0fca (diff)
parenteb313a4f551b6e4c7c756893985a49bff8ab07ca (diff)
downloadtimeline-28aea0ced979675c19d78d9c38991580b20e931a.tar.gz
timeline-28aea0ced979675c19d78d9c38991580b20e931a.tar.bz2
timeline-28aea0ced979675c19d78d9c38991580b20e931a.zip
Merged PR 8: Fix 7 bug!
Fixed! Related work items: #7
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.ts4
1 files changed, 2 insertions, 2 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 13bae5be..70922623 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
@@ -34,7 +34,7 @@ describe('TodoListServiceService', () => {
const mockWorkItems: WorkItem[] = Array.from({ length: 2 }, (_, i) => <WorkItem>{
id: i,
title: 'Test work item ' + i,
- closed: i === 0,
+ isCompleted: i === 0,
detailUrl: `${baseUrl}_workitems/edit/${i}/`,
iconUrl: `${baseUrl}_api/wit/icon/${i}`,
});
@@ -66,7 +66,7 @@ describe('TodoListServiceService', () => {
id: mockWorkItem.id,
fields: {
[TodoListService.titleFieldName]: mockWorkItem.title,
- [TodoListService.stateFieldName]: (mockWorkItem.closed ? 'Closed' : 'Active'),
+ [TodoListService.stateFieldName]: (mockWorkItem.isCompleted ? 'Closed' : 'Active'),
[TodoListService.typeFieldName]: workItemTypeMap.get(mockWorkItem)
}
};