Skip to content

Commit

Permalink
fix(NavbarToggler): remove unnecessary menu char (#200)
Browse files Browse the repository at this point in the history
* fix(NavbarToggler) remove unnecessary menu char

* fix(NavbarToggler): update spec
  • Loading branch information
lvauvillier authored and eddywashere committed Oct 29, 2016
1 parent a7526f3 commit 67544a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/NavbarToggler.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const NavbarToggler = (props) => {

return (
<Tag {...attributes} className={classes}>
{children || String.fromCharCode(9776)}
{children}
</Tag>
);
};
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/NavToggler.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ describe('NavbarToggler', () => {
it('should render .navbar-toggler markup', () => {
const wrapper = shallow(<NavbarToggler />);

expect(wrapper.html()).toBe('<button type="button" class="navbar-toggler"></button>');
expect(wrapper.html()).toBe('<button type="button" class="navbar-toggler"></button>');
});

it('should render custom tag', () => {
const wrapper = shallow(<NavbarToggler tag="div" />);

expect(wrapper.html()).toBe('<div type="button" class="navbar-toggler"></div>');
expect(wrapper.html()).toBe('<div type="button" class="navbar-toggler"></div>');
});

it('sholid render children', () => {
Expand Down

0 comments on commit 67544a3

Please sign in to comment.