mirror of
https://github.com/lana-k/sqliteviz.git
synced 2026-08-05 07:19:17 +08:00
#139 fix deselection in multi-trace charts
This commit is contained in:
@@ -21,6 +21,19 @@ describe('chartHelper.js', () => {
|
||||
])
|
||||
})
|
||||
|
||||
it('getSelectedPointsIndexes returns unique selected point indexes', () => {
|
||||
const stateData = [
|
||||
{ selectedpoints: [1, 2, 3] },
|
||||
{ selectedpoints: [3, 4] },
|
||||
{ selectedpoints: [] },
|
||||
{}
|
||||
]
|
||||
|
||||
const indexes = chartHelper.getSelectedPointsIndexes(stateData)
|
||||
|
||||
expect(indexes).to.eql([1, 2, 3, 4])
|
||||
})
|
||||
|
||||
it('getOptionsForSave', () => {
|
||||
const state = {
|
||||
data: [
|
||||
|
||||
Reference in New Issue
Block a user