Skip to content

Commit

Permalink
Fixed broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
airenzp authored and xzhou82 committed Jun 7, 2024
1 parent a838ccb commit 9779e0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/mass/test/violin.integration.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -761,12 +761,11 @@ tape('term1=numeric, term2=condition', function (test) {
test.end()
}
async function testConditionTermOrder(violin, violinDiv) {
const groups = await detectGte({ elem: violinDiv.node(), selector: '.sjpp-vp-path', count: 10 })
const groups = await detectGte({ elem: violinDiv.node(), selector: '.sjpp-vp-path', count: 8 })
test.ok(groups, 'Condition groups exist')

test.deepEqual(
groups.filter((k, i) => i % 2 == 0).map(k => k.__data__.label),
violin.Inner.data.plots.map(k => k.label),
violin.Inner.data.plots.filter(plot => plot.plotValueCount > 1).map(k => k.label),
'Order of conditional categories in term2 is accurate'
)
}
Expand Down

0 comments on commit 9779e0e

Please sign in to comment.