fix: Charts sort by in edit mode gets cut off (#15896)

This commit is contained in:
Michael S. Molina
2021-07-26 16:38:38 -03:00
committed by GitHub
parent 7aeb15031d
commit 5be0a89625
3 changed files with 10 additions and 5 deletions

View File

@@ -155,10 +155,10 @@ describe('SliceAdder', () => {
});
it('handleSelect', () => {
const newSortBy = { value: 'viz_type' };
const newSortBy = 'viz_type';
wrapper.instance().handleSelect(newSortBy);
expect(spy.calledOnce).toBe(true);
expect(spy.lastCall.args[1]).toBe(newSortBy.value);
expect(spy.lastCall.args[1]).toBe(newSortBy);
});
it('handleKeyPress', () => {