Fix prettier in react plugin template
Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
+4
-4
@@ -5,14 +5,14 @@ import { ExampleComponent } from './ExampleComponent';
|
||||
|
||||
describe('ExampleComponent', () => {
|
||||
it('should render', async () => {
|
||||
await renderInTestApp(<ExampleComponent />)
|
||||
await renderInTestApp(<ExampleComponent />);
|
||||
|
||||
expect(screen.getByText('Hello World')).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('should display a custom message', async () => {
|
||||
await renderInTestApp(<ExampleComponent message={'Hello Example'} />)
|
||||
await renderInTestApp(<ExampleComponent message="Hello Example" />);
|
||||
|
||||
expect(screen.getByText('Hello Example')).toBeInTheDocument();
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
|
||||
+1
-1
@@ -11,5 +11,5 @@ export function useExample() {
|
||||
|
||||
useEffect(() => {
|
||||
alertApi.post({ message: 'Hello World!' });
|
||||
}, [alertApi])
|
||||
}, [alertApi]);
|
||||
}
|
||||
|
||||
@@ -8,5 +8,5 @@
|
||||
// In this package you might for example export components or hooks
|
||||
// that are useful to other plugins or modules.
|
||||
|
||||
export * from './components'
|
||||
export * from './hooks'
|
||||
export * from './components';
|
||||
export * from './hooks';
|
||||
|
||||
Reference in New Issue
Block a user