@salesforce/design-system-react 0.10.50-alpha.1 → 0.10.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/__tests__/accordion.browser-test.jsx +302 -0
- package/components/alert/__tests__/alert.browser-test.jsx +100 -0
- package/components/app-launcher/__tests__/app-launcher.browser-test.jsx +228 -0
- package/components/app-launcher/__tests__/expandable-section.browser-test.jsx +144 -0
- package/components/app-launcher/__tests__/link.browser-test.jsx +107 -0
- package/components/app-launcher/__tests__/tile.browser-test.jsx +267 -0
- package/components/avatar/__tests__/avatar.browser-test.jsx +207 -0
- package/components/builder-header/__tests__/builder-header.browser-test.jsx +53 -0
- package/components/button/__tests__/button.browser-test.jsx +226 -0
- package/components/button-group/__tests__/button-group.browser-test.jsx +144 -0
- package/components/button-stateful/__tests__/button-stateful.browser-test.jsx +125 -0
- package/components/card/__tests__/card.browser-test.jsx +255 -0
- package/components/carousel/__tests__/carousel.browser-test.jsx +527 -0
- package/components/color-picker/__tests__/color-picker.browser-test.jsx +767 -0
- package/components/combobox/__tests__/combobox.browser-test.jsx +654 -0
- package/components/data-table/__tests__/data-table.browser-test.jsx +1051 -0
- package/components/date-picker/__tests__/__snapshots__/datepicker.dom-snapshot-test.jsx.snap +4429 -0
- package/components/date-picker/__tests__/date-picker.browser-test.jsx +497 -0
- package/components/date-picker/__tests__/datepicker.dom-snapshot-test.jsx +109 -0
- package/components/docked-composer/__tests__/docked-composer.browser-test.jsx +83 -0
- package/components/expandable-section/__tests__/expandable-section.browser-test.jsx +133 -0
- package/components/expression/__tests__/expression.browser-test.jsx +255 -0
- package/components/filter/__tests__/filter.browser-test.jsx +147 -0
- package/components/forms/input/__tests__/inline.browser-test.jsx +164 -0
- package/components/global-header/__tests__/global-header.browser-test.jsx +177 -0
- package/components/global-navigation-bar/__tests__/global-navigation-bar.browser-test.jsx +464 -0
- package/components/icon/__tests__/icon.browser-test.jsx +214 -0
- package/components/illustration/__tests__/illustration.browser-test.jsx +177 -0
- package/components/input/__tests__/input.browser-test.jsx +612 -0
- package/components/location-map/__tests__/location-map.browser-test.jsx +158 -0
- package/components/lookup/__tests__/lookup.browser-test.jsx +353 -0
- package/components/media-object/__tests__/media-object.browser-test.jsx +87 -0
- package/components/menu-dropdown/__tests__/dropdown.browser-test.jsx +588 -0
- package/components/menu-picklist/__tests__/menupicklist.snapshot-old-test.jsx +41 -0
- package/components/menu-picklist/__tests__/picklist-base.browser-test.jsx +275 -0
- package/components/modal/__tests__/modal.browser-test.jsx +333 -0
- package/components/notification/__tests__/notification.browser-test.jsx +113 -0
- package/components/page-header/__tests__/page-header.browser-test.jsx +161 -0
- package/components/panel/__tests__/__snapshots__/filtering.dom-snapshot-test.jsx.snap +298 -0
- package/components/panel/__tests__/filtering.dom-snapshot-test.jsx +9 -0
- package/components/pill/__tests__/pill.browser-test.jsx +308 -0
- package/components/pill-container/__tests__/pill-container.browser-test.jsx +186 -0
- package/components/popover/__tests__/popover.browser-test.jsx +327 -0
- package/components/progress-indicator/__tests__/progress-indicator.browser-test.jsx +335 -0
- package/components/radio-button-group/__tests__/radio-button-group.browser-test.jsx +122 -0
- package/components/radio-group/__tests__/radio-group.browser-test.jsx +119 -0
- package/components/setup-assistant/__tests__/setup-assistant.browser-test.jsx +77 -0
- package/components/slider/__tests__/slider.browser-test.jsx +389 -0
- package/components/spinner/__tests__/spinner.browser-test.jsx +57 -0
- package/components/split-view/__tests__/split-view.listbox.browser-test.jsx +225 -0
- package/components/split-view/__tests__/split-view.listbox.header.browser-test.jsx +158 -0
- package/components/split-view/__tests__/split-view.listbox.unread.browser-test.jsx +114 -0
- package/components/tabs/__tests__/tabs.browser-test.jsx +458 -0
- package/components/textarea/__tests__/textarea.browser-test.jsx +175 -0
- package/components/time-picker/__tests__/time-picker.browser-test.jsx +46 -0
- package/components/toast/__tests__/toast.browser-test.jsx +118 -0
- package/components/tooltip/__tests__/tooltip.browser-test.jsx +214 -0
- package/components/tree/__tests__/tree.browser-test.jsx +303 -0
- package/components/vertical-navigation/__tests__/navigation.browser-test.jsx +117 -0
- package/components/visual-picker/__tests__/visual-picker.browser-test.jsx +288 -0
- package/components/welcome-mat/__tests__/welcome-mat.browser-test.jsx +358 -0
- package/design-system-react-components.js +1 -1
- package/design-system-react-components.min.js.LICENSE.txt +1 -1
- package/design-system-react.js +1 -1
- package/design-system-react.min.js.LICENSE.txt +1 -1
- package/lib/design-system-react-components.min.js.LICENSE.txt +1 -1
- package/lib/design-system-react.min.js.LICENSE.txt +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
import assign from 'lodash.assign';
|
|
4
|
+
|
|
5
|
+
import chai from 'chai';
|
|
6
|
+
|
|
7
|
+
import IconSettings from '../../icon-settings';
|
|
8
|
+
import ButtonStateful from '../../button-stateful';
|
|
9
|
+
|
|
10
|
+
chai.should();
|
|
11
|
+
|
|
12
|
+
describe('Button Stateful: ', () => {
|
|
13
|
+
// Base defaults
|
|
14
|
+
const requiredPropsNoVariant = {
|
|
15
|
+
assistiveText: { icon: 'like' },
|
|
16
|
+
iconName: 'like',
|
|
17
|
+
iconSize: 'large',
|
|
18
|
+
};
|
|
19
|
+
const requiredProps = {
|
|
20
|
+
...requiredPropsNoVariant,
|
|
21
|
+
variant: 'icon',
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
// Setup and takedown
|
|
25
|
+
const renderButton = (instance) =>
|
|
26
|
+
function renderButtonFunction() {
|
|
27
|
+
this.dom = document.createElement('div');
|
|
28
|
+
document.body.appendChild(this.dom);
|
|
29
|
+
/* deepscan-disable REACT_ASYNC_RENDER_RETURN_VALUE */
|
|
30
|
+
// eslint-disable-next-line react/no-render-return-value
|
|
31
|
+
this.component = ReactDOM.render(
|
|
32
|
+
<IconSettings iconPath="/assets/icons">{instance}</IconSettings>,
|
|
33
|
+
this.dom
|
|
34
|
+
);
|
|
35
|
+
/* deepscan-enable REACT_ASYNC_RENDER_RETURN_VALUE */
|
|
36
|
+
};
|
|
37
|
+
function removeButton() {
|
|
38
|
+
ReactDOM.unmountComponentAtNode(this.dom);
|
|
39
|
+
document.body.removeChild(this.dom);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const getButton = (dom) => dom.querySelector('.slds-button');
|
|
43
|
+
|
|
44
|
+
// Tests
|
|
45
|
+
describe('Default Structure', () => {
|
|
46
|
+
beforeEach(renderButton(<ButtonStateful {...requiredProps} />));
|
|
47
|
+
afterEach(removeButton);
|
|
48
|
+
|
|
49
|
+
it('button exists - is not undefined', function () {
|
|
50
|
+
const button = getButton(this.dom);
|
|
51
|
+
button.should.not.be.undefined;
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
it('if no active prop, is not active', function () {
|
|
55
|
+
const button = getButton(this.dom);
|
|
56
|
+
button.className.should.include('slds-not-selected');
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
describe('External active props works', () => {
|
|
61
|
+
const propsWithActive = assign({ active: true }, requiredProps);
|
|
62
|
+
|
|
63
|
+
beforeEach(renderButton(<ButtonStateful {...propsWithActive} />));
|
|
64
|
+
afterEach(removeButton);
|
|
65
|
+
|
|
66
|
+
it('renders active prop', function () {
|
|
67
|
+
const button = getButton(this.dom);
|
|
68
|
+
button.className.should.include('slds-is-selected');
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
describe('Aria-* is supported', () => {
|
|
73
|
+
const propsWithAria = assign(
|
|
74
|
+
{ 'aria-pressed': true, 'aria-label': 'abc', 'aria-live': null },
|
|
75
|
+
requiredProps
|
|
76
|
+
);
|
|
77
|
+
beforeEach(renderButton(<ButtonStateful {...propsWithAria} />));
|
|
78
|
+
afterEach(removeButton);
|
|
79
|
+
|
|
80
|
+
it('honors aria override', function () {
|
|
81
|
+
const button = getButton(this.dom);
|
|
82
|
+
button.getAttribute('aria-pressed').should.equal('true');
|
|
83
|
+
button.getAttribute('aria-label').should.equal('abc');
|
|
84
|
+
chai.expect(button.getAttribute('aria-live')).to.be.null;
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
describe('Aria default for icon button', () => {
|
|
89
|
+
const propsToUse = assign({ variant: 'icon' }, requiredPropsNoVariant);
|
|
90
|
+
beforeEach(renderButton(<ButtonStateful {...propsToUse} />));
|
|
91
|
+
afterEach(removeButton);
|
|
92
|
+
|
|
93
|
+
it('gives correct aria default for buttons with icon', function () {
|
|
94
|
+
const button = getButton(this.dom);
|
|
95
|
+
button.getAttribute('aria-live').should.equal('polite');
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
describe('Aria default for icon-filled button', () => {
|
|
100
|
+
const propsToUse = assign(
|
|
101
|
+
{ variant: 'icon-filled' },
|
|
102
|
+
requiredPropsNoVariant
|
|
103
|
+
);
|
|
104
|
+
beforeEach(renderButton(<ButtonStateful {...propsToUse} />));
|
|
105
|
+
afterEach(removeButton);
|
|
106
|
+
|
|
107
|
+
it('gives correct aria default for buttons with icon-filled', function () {
|
|
108
|
+
const button = getButton(this.dom);
|
|
109
|
+
button.getAttribute('aria-live').should.equal('polite');
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
describe('Aria default for non-icon button', () => {
|
|
114
|
+
const propsToUse = assign({ variant: 'base' }, requiredPropsNoVariant);
|
|
115
|
+
beforeEach(renderButton(<ButtonStateful {...propsToUse} />));
|
|
116
|
+
afterEach(removeButton);
|
|
117
|
+
|
|
118
|
+
it('gives correct aria default for non-icon buttons', function () {
|
|
119
|
+
const button = getButton(this.dom);
|
|
120
|
+
button.getAttribute('aria-live').should.equal('assertive');
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
// TODO: Write more tests for custom renderers
|
|
125
|
+
});
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
import assign from 'lodash.assign';
|
|
4
|
+
|
|
5
|
+
import chai from 'chai';
|
|
6
|
+
|
|
7
|
+
import Card from '../../card';
|
|
8
|
+
import CardFilter from '../../card/filter';
|
|
9
|
+
import { cssClasses as mediaObjectCssClasses } from '../../media-object';
|
|
10
|
+
|
|
11
|
+
import Icon from '../../icon';
|
|
12
|
+
import IconSettings from '../../icon-settings';
|
|
13
|
+
|
|
14
|
+
chai.should();
|
|
15
|
+
|
|
16
|
+
const headerIdSuffixes = {
|
|
17
|
+
headerActions: '__header-actions',
|
|
18
|
+
heading: '__heading',
|
|
19
|
+
filter: '__filter-input',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const cardIdSuffixes = {
|
|
23
|
+
body: '__body',
|
|
24
|
+
headerActions: '__header-actions',
|
|
25
|
+
heading: '__heading',
|
|
26
|
+
filter: '__filter-input',
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const cssClasses = {
|
|
30
|
+
base: 'slds-card',
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const footerCssClasses = {
|
|
34
|
+
base: 'slds-card__footer',
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const headerCssClasses = {
|
|
38
|
+
base: 'slds-card__header',
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
describe('Card: ', () => {
|
|
42
|
+
// Base defaults
|
|
43
|
+
const requiredProps = {
|
|
44
|
+
id: 'ExampleCard',
|
|
45
|
+
heading: 'Lots of Related Items',
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const renderCard = (instance) =>
|
|
49
|
+
function renderCardFunction() {
|
|
50
|
+
this.dom = document.createElement('div');
|
|
51
|
+
document.body.appendChild(this.dom);
|
|
52
|
+
/* deepscan-disable REACT_ASYNC_RENDER_RETURN_VALUE */
|
|
53
|
+
// eslint-disable-next-line react/no-render-return-value
|
|
54
|
+
this.component = ReactDOM.render(
|
|
55
|
+
<IconSettings iconPath="/assets/icons">{instance}</IconSettings>,
|
|
56
|
+
this.dom
|
|
57
|
+
);
|
|
58
|
+
/* deepscan-enable REACT_ASYNC_RENDER_RETURN_VALUE */
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
function removeCard() {
|
|
62
|
+
ReactDOM.unmountComponentAtNode(this.dom);
|
|
63
|
+
document.body.removeChild(this.dom);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// DOM queries, [0] present due to test framework, not because it returns a DOM collection
|
|
67
|
+
const getCard = (dom) => dom.querySelector(`.${cssClasses.base}`);
|
|
68
|
+
const getHeader = (dom) =>
|
|
69
|
+
getCard(dom).querySelectorAll(`.${headerCssClasses.base}`)[0];
|
|
70
|
+
const getHeaderActions = (dom) =>
|
|
71
|
+
getHeader(dom).querySelectorAll(
|
|
72
|
+
`#${requiredProps.id}${headerIdSuffixes.headerActions}`
|
|
73
|
+
)[0];
|
|
74
|
+
const getFilter = (dom) =>
|
|
75
|
+
getHeader(dom).querySelectorAll('.slds-form-element')[0];
|
|
76
|
+
const getBody = (dom) =>
|
|
77
|
+
getCard(dom).querySelectorAll(
|
|
78
|
+
`#${requiredProps.id}${cardIdSuffixes.body}`
|
|
79
|
+
)[0];
|
|
80
|
+
const getFooter = (dom) =>
|
|
81
|
+
getCard(dom).querySelectorAll(`.${footerCssClasses.base}`)[0];
|
|
82
|
+
const getEmptyBodyHeading = (dom) => getBody(dom).querySelectorAll('h3')[0];
|
|
83
|
+
|
|
84
|
+
// Tests
|
|
85
|
+
describe('Default Structure', () => {
|
|
86
|
+
beforeEach(renderCard(<Card {...requiredProps} />));
|
|
87
|
+
|
|
88
|
+
afterEach(removeCard);
|
|
89
|
+
|
|
90
|
+
it('has a header', function () {
|
|
91
|
+
const header = getHeader(this.dom);
|
|
92
|
+
header.should.not.be.undefined;
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
it('has a body', function () {
|
|
96
|
+
const body = getBody(this.dom);
|
|
97
|
+
body.should.not.be.undefined;
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
it('has the correct heading text', function () {
|
|
101
|
+
const heading = getHeader(this.dom).querySelectorAll(
|
|
102
|
+
`#${requiredProps.id}${cardIdSuffixes.heading}`
|
|
103
|
+
)[0];
|
|
104
|
+
heading.textContent = requiredProps.heading;
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
// Optional props
|
|
109
|
+
const renderFooterContents = React.createElement('span', {
|
|
110
|
+
id: 'sampleFooter',
|
|
111
|
+
});
|
|
112
|
+
const renderHeaderActions = React.createElement('span', {
|
|
113
|
+
id: 'sampleHeaderActions',
|
|
114
|
+
});
|
|
115
|
+
const renderFilter = React.createElement(CardFilter);
|
|
116
|
+
const renderIcon = React.createElement(Icon, {
|
|
117
|
+
category: 'standard',
|
|
118
|
+
name: 'default',
|
|
119
|
+
size: 'small',
|
|
120
|
+
});
|
|
121
|
+
const ariaLabel = 'aria-label';
|
|
122
|
+
const dataLabel = 'data-label';
|
|
123
|
+
|
|
124
|
+
const optionalProps = assign(requiredProps, {
|
|
125
|
+
bodyClassName: 'this-is-a-custom-body-class',
|
|
126
|
+
className: 'this-is-a-custom-card-class',
|
|
127
|
+
footer: renderFooterContents,
|
|
128
|
+
headerActions: renderHeaderActions,
|
|
129
|
+
filter: renderFilter,
|
|
130
|
+
icon: renderIcon,
|
|
131
|
+
style: { background: 'rgb(18, 49, 35)' },
|
|
132
|
+
[ariaLabel]: ariaLabel,
|
|
133
|
+
[dataLabel]: dataLabel,
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
describe('Optional Structure', () => {
|
|
137
|
+
beforeEach(renderCard(<Card {...optionalProps} />));
|
|
138
|
+
|
|
139
|
+
afterEach(removeCard);
|
|
140
|
+
|
|
141
|
+
it('has a header', function () {
|
|
142
|
+
const header = getHeader(this.dom);
|
|
143
|
+
header.should.not.be.undefined;
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
it('renders custom styles', function () {
|
|
147
|
+
const card = getCard(this.dom);
|
|
148
|
+
card.style.backgroundColor.should.equal('rgb(18, 49, 35)');
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
it('renders custom classes on card', function () {
|
|
152
|
+
const card = getCard(this.dom);
|
|
153
|
+
card.className.should.contain('this-is-a-custom-card-class');
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
it('renders custom classes on body', function () {
|
|
157
|
+
const body = getBody(this.dom);
|
|
158
|
+
body.className.should.contain('this-is-a-custom-body-class');
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
it('has a body', function () {
|
|
162
|
+
const body = getBody(this.dom);
|
|
163
|
+
body.should.not.be.undefined;
|
|
164
|
+
});
|
|
165
|
+
|
|
166
|
+
it('has an icon', function () {
|
|
167
|
+
const header = getHeader(this.dom);
|
|
168
|
+
const icon = header.querySelectorAll(
|
|
169
|
+
`.${mediaObjectCssClasses.figure}`
|
|
170
|
+
)[0];
|
|
171
|
+
icon.should.not.be.undefined;
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
it('has the default filter and correct ID', function () {
|
|
175
|
+
const filter = getFilter(this.dom);
|
|
176
|
+
filter.should.not.be.undefined;
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
it('has a footer and correct child ID', function () {
|
|
180
|
+
const footer = getFooter(this.dom);
|
|
181
|
+
footer.should.not.be.undefined;
|
|
182
|
+
const footerChildren = footer.querySelectorAll('#sampleFooter')[0];
|
|
183
|
+
footerChildren.should.not.be.undefined;
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
it('has header actions and correct child ID', function () {
|
|
187
|
+
const headerActions = getHeaderActions(this.dom);
|
|
188
|
+
headerActions.should.not.be.undefined;
|
|
189
|
+
const headerActionsChildren = headerActions.querySelectorAll(
|
|
190
|
+
'#sampleHeaderActions'
|
|
191
|
+
)[0];
|
|
192
|
+
headerActionsChildren.should.not.be.undefined;
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
it('correctly destructures `aria-` props', function () {
|
|
196
|
+
const card = getCard(this.dom);
|
|
197
|
+
card.getAttribute(ariaLabel).should.equal(ariaLabel);
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
it('correctly destructures `data-` props', function () {
|
|
201
|
+
const card = getCard(this.dom);
|
|
202
|
+
card.dataset.label.should.equal(dataLabel);
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
|
|
206
|
+
describe('Accepts a custom node as heading', () => {
|
|
207
|
+
const props = {
|
|
208
|
+
id: 'ExampleCard',
|
|
209
|
+
heading: (
|
|
210
|
+
<span
|
|
211
|
+
id="custom-heading"
|
|
212
|
+
className="slds-text-heading_small slds-truncate"
|
|
213
|
+
style={{ color: 'red' }}
|
|
214
|
+
>
|
|
215
|
+
To Wanda! This is custom!
|
|
216
|
+
</span>
|
|
217
|
+
),
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
beforeEach(renderCard(<Card {...props} />));
|
|
221
|
+
|
|
222
|
+
afterEach(removeCard);
|
|
223
|
+
|
|
224
|
+
it('has header with unique ID', function () {
|
|
225
|
+
const heading = getCard(this.dom).querySelectorAll('#custom-heading')[0];
|
|
226
|
+
heading.id.should.not.be.undefined;
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
|
|
230
|
+
describe('Empty Structure', () => {
|
|
231
|
+
const props = assign(optionalProps, {
|
|
232
|
+
empty: true,
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
beforeEach(renderCard(<Card {...props} />));
|
|
236
|
+
|
|
237
|
+
afterEach(removeCard);
|
|
238
|
+
|
|
239
|
+
it('has a header', function () {
|
|
240
|
+
const header = getHeader(this.dom);
|
|
241
|
+
header.should.not.be.undefined;
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
it('has a body', function () {
|
|
245
|
+
const body = getBody(this.dom);
|
|
246
|
+
body.should.not.be.undefined;
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
it('has body heading based on heading of Card', function () {
|
|
250
|
+
const emptyBodyheading = getEmptyBodyHeading(this.dom);
|
|
251
|
+
emptyBodyheading.should.not.be.undefined;
|
|
252
|
+
emptyBodyheading.textContent.should.equal(requiredProps.heading);
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
});
|