Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Yasuchenya authored and GFilipovich committed Oct 2, 2022
1 parent 7473aa6 commit 4633adb
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,16 @@ describe("Get merge contacts epic tests", () => {
mergeRequest: {
contactA,
contactB,
data: Object.assign({}, ...mergeData.mergeLines.filter(l => l.a === l.b).map(l => ({ [l.key]: "A" })))
data: Object.assign(
{},

...mergeData.mergeLines
.filter(l => l.a === l.b)
.map(l => ({ [l.key]: "A" })),

...mergeData.mergeLines
.filter(l => l.a !== l.b && (!l.a || !l.b))
.map(l => ({ [l.key]: (l.a && "A") || (l.b && "B") })))
}
})
];
Expand Down

0 comments on commit 4633adb

Please sign in to comment.