-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(sidebar): Task assignment to use new status field (#720)
- Loading branch information
Conrad Chan
authored
Dec 19, 2018
1 parent
a71390b
commit 4f4c18e
Showing
13 changed files
with
56 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,8 +45,7 @@ jest.mock('../Tasks', () => { | |
name: 'Daniel DeMicco', | ||
login: '[email protected]', | ||
}, | ||
resolution_state: 'incomplete', | ||
message: 'Completed', | ||
status: 'completed', | ||
}, | ||
], | ||
}); | ||
|
@@ -151,8 +150,7 @@ describe('api/Feed', () => { | |
name: 'Daniel DeMicco', | ||
login: '[email protected]', | ||
}, | ||
resolution_state: 'incomplete', | ||
message: 'Completed', | ||
status: 'completed', | ||
}, | ||
], | ||
}; | ||
|
@@ -409,11 +407,11 @@ describe('api/Feed', () => { | |
taskId, | ||
{ | ||
...tasks.entries[0].task_assignment_collection.entries[0], | ||
message: updatedState, | ||
status: updatedState, | ||
}, | ||
successCb, | ||
); | ||
expect(feed.updateFeedItem.mock.calls[0][0].task_assignment_collection.entries[0].resolution_state).toBe( | ||
expect(feed.updateFeedItem.mock.calls[0][0].task_assignment_collection.entries[0].status).toBe( | ||
updatedState, | ||
); | ||
expect(successCb).toBeCalled(); | ||
|
@@ -564,7 +562,7 @@ describe('api/Feed', () => { | |
entries: [ | ||
{ | ||
assigned_to: assignees[0], | ||
resolution_state: 'incomplete', | ||
status: 'incomplete', | ||
}, | ||
], | ||
total_count: 1, | ||
|
@@ -588,7 +586,7 @@ describe('api/Feed', () => { | |
entries: [ | ||
{ | ||
assigned_to: assignees[0], | ||
resolution_state: 'incomplete', | ||
status: 'incomplete', | ||
}, | ||
], | ||
total_count: 1, | ||
|
@@ -748,13 +746,12 @@ describe('api/Feed', () => { | |
{ | ||
id: '1', | ||
assigned_to: { id: '1234' }, | ||
message: 'completed', | ||
resolution_state: 'completed', | ||
status: 'completed', | ||
}, | ||
]; | ||
const expectedResult = { | ||
task_assignment_collection: { | ||
entries: [{ ...assignments[0], type: 'task_assignment' }], | ||
entries: [{ ...assignments[0], status: 'completed', type: 'task_assignment' }], | ||
total_count: 1, | ||
}, | ||
}; | ||
|
@@ -776,12 +773,12 @@ describe('api/Feed', () => { | |
{ | ||
id: '1', | ||
assigned_to: { id: '1234' }, | ||
resolution_state: 'completed', | ||
status: 'completed', | ||
}, | ||
]; | ||
const expectedResult = { | ||
task_assignment_collection: { | ||
entries: [{ ...assignments[0], type: 'task_assignment' }], | ||
entries: [{ ...assignments[0], status: 'completed', type: 'task_assignment' }], | ||
total_count: 1, | ||
}, | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.