Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
rshen91 committed Mar 16, 2022
1 parent eb90130 commit 3adda2c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import React from 'react';
import { ServicesProvider, SharedUXServices } from '../../../../services';
import { servicesFactory } from '../../../../services/mocks';

import { SolutionToolbarButton } from '../primary/primary';
import { ToolbarButton } from '../primary/primary';

describe('<SolutionToolbarButton />', () => {
describe('<ToolbarButton />', () => {
let services: SharedUXServices;
let mount: (element: JSX.Element) => ReactWrapper;

Expand All @@ -24,9 +24,7 @@ describe('<SolutionToolbarButton />', () => {
});

test('is rendered', () => {
const component = mount(
<SolutionToolbarButton iconType="folderOpen" label="Add from library" />
);
const component = mount(<ToolbarButton iconType="folderOpen" label="Add from library" />);

expect(component).toMatchSnapshot();
});
Expand Down

0 comments on commit 3adda2c

Please sign in to comment.