Fix working on tests
parent
9ed2e3abf2
commit
0816e134bf
|
@ -51,14 +51,32 @@ describe "WorkingOn", ->
|
||||||
|
|
||||||
workInProgress = Immutable.fromJS({
|
workInProgress = Immutable.fromJS({
|
||||||
assignedTo: {
|
assignedTo: {
|
||||||
userStories: [{id: 1, modified_date: "2015-01-01"}, {id: 2, modified_date: "2015-01-04"}],
|
epics: [
|
||||||
tasks: [{id: 3, modified_date: "2015-01-02"}, {id: 4, modified_date: "2015-01-05"}],
|
{id: 7, modified_date: "2015-01-08"},
|
||||||
issues: [{id: 5, modified_date: "2015-01-03"}, {id: 6, modified_date: "2015-01-06"}]
|
{id: 8, modified_date: "2015-01-07"}],
|
||||||
|
userStories: [
|
||||||
|
{id: 1, modified_date: "2015-01-01"},
|
||||||
|
{id: 2, modified_date: "2015-01-04"}],
|
||||||
|
tasks: [
|
||||||
|
{id: 3, modified_date: "2015-01-02"},
|
||||||
|
{id: 4, modified_date: "2015-01-05"}],
|
||||||
|
issues: [
|
||||||
|
{id: 5, modified_date: "2015-01-03"},
|
||||||
|
{id: 6, modified_date: "2015-01-06"}]
|
||||||
},
|
},
|
||||||
watching: {
|
watching: {
|
||||||
userStories: [{id: 7, modified_date: "2015-01-01"}, {id: 8, modified_date: "2015-01-04"}],
|
epics: [
|
||||||
tasks: [{id: 9, modified_date: "2015-01-02"}, {id: 10, modified_date: "2015-01-05"}],
|
{id: 13, modified_date: "2015-01-07"},
|
||||||
issues: [{id: 11, modified_date: "2015-01-03"}, {id: 12, modified_date: "2015-01-06"}]
|
{id: 14, modified_date: "2015-01-08"}],
|
||||||
|
userStories: [
|
||||||
|
{id: 7, modified_date: "2015-01-01"},
|
||||||
|
{id: 8, modified_date: "2015-01-04"}],
|
||||||
|
tasks: [
|
||||||
|
{id: 9, modified_date: "2015-01-02"},
|
||||||
|
{id: 10, modified_date: "2015-01-05"}],
|
||||||
|
issues: [
|
||||||
|
{id: 11, modified_date: "2015-01-03"},
|
||||||
|
{id: 12, modified_date: "2015-01-06"}]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -68,6 +86,8 @@ describe "WorkingOn", ->
|
||||||
|
|
||||||
ctrl.getWorkInProgress(userId).then () ->
|
ctrl.getWorkInProgress(userId).then () ->
|
||||||
expect(ctrl.assignedTo.toJS()).to.be.eql([
|
expect(ctrl.assignedTo.toJS()).to.be.eql([
|
||||||
|
{id: 7, modified_date: '2015-01-08'},
|
||||||
|
{id: 8, modified_date: '2015-01-07'},
|
||||||
{id: 6, modified_date: '2015-01-06'},
|
{id: 6, modified_date: '2015-01-06'},
|
||||||
{id: 4, modified_date: '2015-01-05'},
|
{id: 4, modified_date: '2015-01-05'},
|
||||||
{id: 2, modified_date: '2015-01-04'},
|
{id: 2, modified_date: '2015-01-04'},
|
||||||
|
@ -77,6 +97,8 @@ describe "WorkingOn", ->
|
||||||
])
|
])
|
||||||
|
|
||||||
expect(ctrl.watching.toJS()).to.be.eql([
|
expect(ctrl.watching.toJS()).to.be.eql([
|
||||||
|
{id: 14, modified_date: '2015-01-08'},
|
||||||
|
{id: 13, modified_date: '2015-01-07'},
|
||||||
{id: 12, modified_date: '2015-01-06'},
|
{id: 12, modified_date: '2015-01-06'},
|
||||||
{id: 10, modified_date: '2015-01-05'},
|
{id: 10, modified_date: '2015-01-05'},
|
||||||
{id: 8, modified_date: '2015-01-04'},
|
{id: 8, modified_date: '2015-01-04'},
|
||||||
|
|
Loading…
Reference in New Issue