-
Notifications
You must be signed in to change notification settings - Fork 7
[WIP] Test for merge function #16
[WIP] Test for merge function #16
Conversation
__test__/relation-tests.js
Outdated
let node2 = nodes[1]; | ||
let rel1 = OGMNeoRelation.relateMerge(node1.id, 'relatedto', node2.id, { property: 'a' }); | ||
let rel2 = OGMNeoRelation.relateMerge(node1.id, 'relatedto', node2.id, {}); | ||
let rel3 = OGMNeoRelation.relateMerge(node1.id, 'relatedto', node2.id, { property: 'a' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rel3 and rel4 aren't being used here on this test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright I forgot about this. I'll fix it shortly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @AoiGhost I think it's good, post some comments above. Just some linting problems and some tests that actually test node counts that fail because they are being affected by the new tests that create a new node.
Alright, I forgot about this. I'm probably going to add create unique as well in an updated version of this, hang tight. |
Codecov Report
@@ Coverage Diff @@
## merge-function #16 +/- ##
==================================================
+ Coverage 98.06% 98.14% +0.08%
==================================================
Files 21 21
Lines 1857 1940 +83
Branches 187 191 +4
==================================================
+ Hits 1821 1904 +83
Misses 36 36
Continue to review full report at Codecov.
|
Reading up again, create unique is deprecated. Never mind, I'll just go with merge. |
OK, from the looks of it my code is fixed and hopefully should be mergeable @LucianoPAlmeida. That being said, looks like travis is finding test issues in the base code, so you might want to take a look. |
Hey @AoiGhost
That's actually not the good scenario for unit tests to impact each other, my bad on that. Can you make this changes? Any of those are acceptable, I'll probably decouple the unit tests later so they don't depend on each other. |
This is a test and RFC for merge functionality. Do not merge this yet, as it is untested.