Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
test('renders an action bar with one button', () => {
const component = renderer.create(
<button>Button</button>
);
expect(component).toMatchSnapshot();
});test('renders an action bar with two buttons', () => {
const component = renderer.create(
<button>Button</button>
<button>Button</button>
);
expect(component).toMatchSnapshot();
});public render(): React.ReactNode {
const {isClosed, onAccept, onClickSettings, notice, settingsLabel, ...elemProps} = this.props;
return (
{notice}
{onClickSettings && (
{settingsLabel}
)}
<button>
Continue
</button>
);
}
}