mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-03 22:31:52 +00:00
Removed no longer needed eslint disable comments
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user