mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
[sqllab] async queries - better error handling (#1853)
This commit is contained in:
committed by
GitHub
parent
0712894353
commit
16731056ed
@@ -24,9 +24,9 @@ describe('HighlightedSql', () => {
|
||||
it('renders two SyntaxHighlighter in modal', () => {
|
||||
const wrapper = mount(
|
||||
<HighlightedSql sql={sql} rawSql="SELECT * FORM foo" shrink maxWidth={5} />);
|
||||
const well = wrapper.find('.well');
|
||||
expect(well).to.have.length(1);
|
||||
well.simulate('click');
|
||||
const pre = wrapper.find('pre');
|
||||
expect(pre).to.have.length(1);
|
||||
pre.simulate('click');
|
||||
const modalBody = mount(wrapper.state().modalBody);
|
||||
expect(modalBody.find(SyntaxHighlighter)).to.have.length(2);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user