Skip to content

Commit

Permalink
test(SideNavDivider): add tests (#13313)
Browse files Browse the repository at this point in the history
* test(SideNavDivider): add tests

* fix: copyright header year

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
francinelucca and kodiakhq[bot] authored Mar 16, 2023
1 parent 4df1ef9 commit 591569b
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/**
* Copyright IBM Corp. 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

import React from 'react';
import SideNavDivider from '../SideNavDivider';
import { render } from '@testing-library/react';

describe('SideNavDivider', () => {
describe('renders as expected - Component API', () => {
it('should support a custom `className` prop on the outermost element', () => {
const { container } = render(<SideNavDivider className="custom-class" />);

expect(container.firstChild).toHaveClass('custom-class');
});
});
});

0 comments on commit 591569b

Please sign in to comment.