Removed no longer needed eslint disable comments

This commit is contained in:
Alejandro Celaya
2022-03-26 13:07:58 +01:00
parent 28a5166f56
commit 98450ebec3
12 changed files with 10 additions and 13 deletions

View File

@@ -73,7 +73,7 @@ describe('<App />', () => {
['/bar', 'shlink-wrapper'],
['/', 'shlink-wrapper d-flex d-md-block align-items-center'],
])('renders expected classes on shlink-wrapper based on current pathname', (pathname, expectedClasses) => {
(useLocation as any).mockReturnValue({ pathname }); // eslint-disable-line @typescript-eslint/no-unsafe-call
(useLocation as any).mockReturnValue({ pathname });
const wrapper = createWrapper();
const shlinkWrapper = wrapper.find('.shlink-wrapper');

View File

@@ -12,7 +12,7 @@ describe('ReportExporter', () => {
beforeEach(jest.clearAllMocks);
beforeEach(() => {
(global as any).Blob = class Blob {}; // eslint-disable-line @typescript-eslint/no-extraneous-class
(global as any).Blob = class Blob {};
(global as any).URL = { createObjectURL: () => '' };
exporter = new ReportExporter(windowMock, csvToJsonMock);

View File

@@ -78,7 +78,7 @@ describe('<ImportServersBtn />', () => {
const wrapper = createWrapper();
const file = wrapper.find('.import-servers-btn__csv-select');
await file.simulate('change', { target: { files: [''] } }); // eslint-disable-line @typescript-eslint/await-thenable
await file.simulate('change', { target: { files: [''] } });
expect(importServersFromFile).toHaveBeenCalledTimes(1);
});

View File

@@ -35,7 +35,7 @@ describe('ServersExporter', () => {
beforeEach(() => {
originalConsole = global.console;
global.console = Mock.of<Console>({ error });
(global as any).Blob = class Blob {}; // eslint-disable-line @typescript-eslint/no-extraneous-class
(global as any).Blob = class Blob {};
(global as any).URL = { createObjectURL: () => '' };
});
afterEach(() => {

View File

@@ -58,7 +58,7 @@ describe('<DeleteTagConfirmModal />', () => {
const footer = wrapper.find(ModalFooter);
const delBtn = footer.find(Button).last();
await delBtn.simulate('click'); // eslint-disable-line @typescript-eslint/await-thenable
await delBtn.simulate('click');
expect(deleteTag).toHaveBeenCalledTimes(1);
expect(deleteTag).toHaveBeenCalledWith(tag);

View File

@@ -83,7 +83,7 @@ describe('<EditTagModal />', () => {
expect(editTag).not.toHaveBeenCalled();
expect(tagEdited).not.toHaveBeenCalled();
await form.simulate('submit', { preventDefault: jest.fn() }); // eslint-disable-line @typescript-eslint/await-thenable
await form.simulate('submit', { preventDefault: jest.fn() });
expect(editTag).toHaveBeenCalled();
expect(tagEdited).toHaveBeenCalled();