Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
fix(test): unit test is fixed based on new addition in wi service
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbornsen authored and sudsen committed Oct 23, 2018
1 parent 0b57b69 commit 0d8af57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/services/work-item.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class WorkItemService {
map((resp) => {
return {
workItems: resp.data as WorkItem[],
nextLink: resp.links.next,
nextLink: resp.links.next ? resp.links.next : null,
included: resp.included ? resp.included as WorkItem[] : [],
ancestorIDs: resp.meta.ancestorIDs ? resp.meta.ancestorIDs : []
};
Expand Down
4 changes: 2 additions & 2 deletions src/app/services/work-item.snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1116,15 +1116,15 @@ export const workItemSnapshot = {

export const getWorkItemResponseSnapshot = {
workItems: workItemSnapshot.data,
nextLink: '',
nextLink: null,
totalCount: workItemSnapshot.meta.totalCount,
included: workItemSnapshot.included,
ancestorIDs: workItemSnapshot.meta.ancestorIDs
};

export const getMoreWorkItemResponseSnapshot = {
workItems: workItemSnapshot.data,
nextLink: undefined,
nextLink: null,
included: workItemSnapshot.included,
ancestorIDs: workItemSnapshot.meta.ancestorIDs
};
Expand Down

0 comments on commit 0d8af57

Please sign in to comment.