mirror of
https://github.com/apache/superset.git
synced 2026-04-10 11:55:24 +00:00
[exploreV2] mapStateToProps for fields (#1882)
* Controls support for mapStateToProps * Binding methods in the constructor * Adressing comments * Fixing tests
This commit is contained in:
committed by
GitHub
parent
9a62d94630
commit
222671675c
@@ -31,13 +31,17 @@ describe('EmbedCodeButton', () => {
|
||||
width: '2000',
|
||||
srcLink: 'http://localhost/endpoint_url',
|
||||
});
|
||||
const embedHTML = `
|
||||
<iframe
|
||||
src="nullendpoint_url"
|
||||
width="2000"
|
||||
height="1000"
|
||||
seamless frameBorder="0" scrolling="no">
|
||||
</iframe>`;
|
||||
const embedHTML = (
|
||||
'<iframe\n' +
|
||||
' width="2000"\n' +
|
||||
' height="1000"\n' +
|
||||
' seamless\n' +
|
||||
' frameBorder="0"\n' +
|
||||
' scrolling="no"\n' +
|
||||
' src="nullendpoint_url&height=1000"\n' +
|
||||
'>\n' +
|
||||
'</iframe>'
|
||||
);
|
||||
expect(wrapper.instance().generateEmbedHTML()).to.equal(embedHTML);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user