wix-style-react
Version:
wix-style-react
38 lines (32 loc) • 1.16 kB
JavaScript
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
import React from 'react';
import { shallow } from 'enzyme';
import EndorseContentLayout from '.';
import styles from './styles.scss';
var EndorseContentLayoutDriver = function EndorseContentLayoutDriver() {
var _this = this;
_classCallCheck(this, EndorseContentLayoutDriver);
this.when = {
created: function created(props) {
return _this.component = shallow(React.createElement(EndorseContentLayout, props));
}
};
this.get = {
root: function root() {
return _this.component.find('.' + styles.root);
},
head: function head() {
return _this.component.find('.' + styles.head);
},
content: function content() {
return _this.component.find('.' + styles.content);
},
primaryCta: function primaryCta() {
return _this.component.find('.' + styles.primaryCta);
},
secondaryCta: function secondaryCta() {
return _this.component.find('.' + styles.secondaryCta);
}
};
};
export { EndorseContentLayoutDriver as default };