Skip to content

Commit 9ed03fe

Browse files
committed
tests: update tests
1 parent f2068d9 commit 9ed03fe

File tree

5 files changed

+7
-16
lines changed

5 files changed

+7
-16
lines changed

packages/coreui-react/src/components/accordion/__tests__/__snapshots__/CAccordionCollapse.spec.tsx.snap

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/coreui-react/src/components/popover/__tests__/__snapshots__/CPopover.spec.tsx.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ exports[`CPopover customize 1`] = `
1111
<div
1212
class="popover bs-popover-end fade"
1313
role="tooltip"
14-
style="position: absolute; left: 0px; top: 0px;"
14+
style="position: absolute; left: 0px; top: 0px; margin: 0px;"
1515
>
1616
<div
1717
class="popover-arrow"
18+
data-popper-arrow="true"
1819
style="position: absolute;"
1920
/>
2021
<div

packages/coreui-react/src/components/spinner/__tests__/__snapshots__/CSpinner.spec.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`CSpinner customize 1`] = `
44
<div>
55
<h3
6-
class="spinner-grow text-warning spinner-grow-sm bazinga"
6+
class="spinner-grow spinner-grow-sm text-warning bazinga"
77
role="status"
88
>
99
<span
@@ -18,7 +18,7 @@ exports[`CSpinner customize 1`] = `
1818
exports[`loads and displays CSpinner component 1`] = `
1919
<div>
2020
<div
21-
class="spinner-border text-undefined"
21+
class="spinner-border"
2222
role="status"
2323
>
2424
<span

packages/coreui-react/src/components/table/CTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ export const CTable = forwardRef<HTMLTableElement, CTableProps>(
201201
<CTableRow {...(item._props && { ...item._props })} key={index}>
202202
{columnNames &&
203203
columnNames.map((colName: string, index: number) => {
204-
return item[colName] ? (
204+
// eslint-disable-next-line unicorn/no-typeof-undefined, unicorn/no-negated-condition
205+
return item[colName] !== undefined ? (
205206
<CTableDataCell
206207
{...(item._cellProps && {
207208
...(item._cellProps['all'] && { ...item._cellProps['all'] }),

packages/coreui-react/src/components/tooltip/__tests__/CTooltip.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ beforeEach(() => {
1313
})
1414

1515
afterEach(() => {
16-
container && document.body.removeChild(container)
16+
container && container.remove()
1717
container = null
1818
})
1919

0 commit comments

Comments
 (0)