Fix linting errors after #13392
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -60,7 +60,7 @@ describe('AddShortcut', () => {
|
||||
|
||||
fireEvent.click(screen.getByText('Save'));
|
||||
await waitFor(() => {
|
||||
expect(spy).toBeCalledWith({
|
||||
expect(spy).toHaveBeenCalledWith({
|
||||
title: 'some title',
|
||||
url: '/some-url',
|
||||
});
|
||||
@@ -77,7 +77,7 @@ describe('AddShortcut', () => {
|
||||
fireEvent.click(screen.getByText('Use current page'));
|
||||
fireEvent.click(screen.getByText('Save'));
|
||||
await waitFor(() => {
|
||||
expect(spy).toBeCalledWith({
|
||||
expect(spy).toHaveBeenCalledWith({
|
||||
title: 'some document title',
|
||||
url: '/some-initial-url',
|
||||
});
|
||||
|
||||
@@ -66,7 +66,7 @@ describe('EditShortcut', () => {
|
||||
|
||||
fireEvent.click(screen.getByText('Save'));
|
||||
await waitFor(() => {
|
||||
expect(spy).toBeCalledWith({
|
||||
expect(spy).toHaveBeenCalledWith({
|
||||
id: 'id',
|
||||
title: 'some new title',
|
||||
url: '/some-new-url',
|
||||
@@ -81,7 +81,7 @@ describe('EditShortcut', () => {
|
||||
await renderInTestApp(<EditShortcut {...props} />);
|
||||
|
||||
fireEvent.click(screen.getByText('Remove'));
|
||||
expect(spy).toBeCalledWith('id');
|
||||
expect(spy).toHaveBeenCalledWith('id');
|
||||
});
|
||||
|
||||
it('displays errors', async () => {
|
||||
|
||||
Reference in New Issue
Block a user