Skip to content

Commit a9ac852

Browse files
committed
refactor(test): removed dummy console.log
1 parent 59d54d7 commit a9ac852

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test/index.spec.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,15 @@ describe('Tooltip', () => {
173173
]
174174
]).it('Popup color generation - show', (props, res) => {
175175
render(
176-
<span id="colorSpecInvoker" data-tip data-for="colorSpec" onMouseEnter={() => console.log('ENTER*******')}>
176+
<span id="colorSpecInvoker" data-tip data-for="colorSpec">
177177
Invoker
178178
</span>
179179
);
180180
render(<ReactTooltip id="colorSpec" {...props} />);
181-
fireEvent( document
182-
.getElementById('colorSpecInvoker'), new window.Event('mouseenter'))
181+
fireEvent(
182+
document.getElementById('colorSpecInvoker'),
183+
new window.Event('mouseenter')
184+
);
183185

184186
const tooltip = document.getElementById('colorSpec');
185187
expect(tooltip.className).to.match(
@@ -194,8 +196,9 @@ describe('Tooltip', () => {
194196

195197
const uuid = tooltip.className.split(' ')[1];
196198
const cssRules = tooltip.firstElementChild.sheet.cssRules;
197-
const mainCssRule = cssRules.find(rule => rule.selectorText === `.${uuid}`)
198-
.style;
199+
const mainCssRule = cssRules.find(
200+
(rule) => rule.selectorText === `.${uuid}`
201+
).style;
199202

200203
expect(mainCssRule.color, 'Text color').to.equal(res.textColor);
201204
expect(mainCssRule.background, 'Background color').to.equal(res.background);
@@ -204,10 +207,10 @@ describe('Tooltip', () => {
204207
);
205208

206209
const arrowPositions = ['top', 'bottom', 'left', 'right'];
207-
arrowPositions.forEach(pos => {
210+
arrowPositions.forEach((pos) => {
208211
expect(
209212
cssRules.find(
210-
rule => rule.selectorText === `.${uuid}.place-${pos}::after`
213+
(rule) => rule.selectorText === `.${uuid}.place-${pos}::after`
211214
).style[`border-${pos}-color`],
212215
pos + ' arrow color'
213216
).to.equal(res.arrowColor ? res.arrowColor : res.background);

0 commit comments

Comments
 (0)