[fix] dashboard filter scope bug (#9550)

This commit is contained in:
Grace Guo
2020-04-16 15:44:03 -07:00
committed by GitHub
parent 074e3653e2
commit 4a55e1ea3a
2 changed files with 24 additions and 4 deletions

View File

@@ -212,5 +212,19 @@ describe('getFilterScopeFromNodesTree', () => {
immune: [],
});
});
it('mixed row level tab and chart scope', () => {
const checkedChartIds = [103, 105, 102];
expect(
getFilterScopeFromNodesTree({
filterKey: '107_region',
nodes,
checkedChartIds,
}),
).toEqual({
scope: ['TAB-E4mJaZ-uQM', 'TAB-rLYu-Cryu'],
immune: [101],
});
});
});
});