Skip to content

Commit

Permalink
fixed linting #73
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoGuarnaccia5 committed Oct 31, 2023
1 parent 47efb97 commit b337148
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/api/manufacturer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import {
ManufacturerDetail,
ViewManufacturerResponse,
} from '../app.types';
import Manufacturer from '../manufacturer/manufacturer.component';
import { error } from 'console';

const getAllManufacturers = async (): Promise<ViewManufacturerResponse[]> => {
let apiUrl: string;
Expand Down
1 change: 0 additions & 1 deletion src/manufacturer/manufacturer.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import DeleteIcon from '@mui/icons-material/Delete';
import EditIcon from '@mui/icons-material/Edit';
import React from 'react';
import { useManufacturers } from '../api/manufacturer';
import { EditManufacturer, ViewManufacturerResponse } from '../app.types';
import DeleteManufacturerDialog from './deleteManufacturerDialog.component';
import { ManufacturerDetail } from '../app.types';
import ManufacturerDialog from './manufacturerDialog.component';
Expand Down
5 changes: 0 additions & 5 deletions src/mocks/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import {
EditCatalogueCategory,
EditCatalogueItem,
} from '../app.types';
import { Man } from '@mui/icons-material';

export const handlers = [
rest.post('/v1/catalogue-categories', async (req, res, ctx) => {
Expand Down Expand Up @@ -179,10 +178,6 @@ export const handlers = [
}),

rest.patch('/v1/manufacturers/:id', async (req, res, ctx) => {
const { id } = req.params;
const data = ManufacturerJSON.filter(
(manufacturer) => manufacturer.id === id
);
const body = (await req.json()) as EditManufacturer;

Check warning on line 181 in src/mocks/handlers.ts

View check run for this annotation

Codecov / codecov/patch

src/mocks/handlers.ts#L180-L181

Added lines #L180 - L181 were not covered by tests
if (body.name === 'test_dup') {
return res(

Check warning on line 183 in src/mocks/handlers.ts

View check run for this annotation

Codecov / codecov/patch

src/mocks/handlers.ts#L183

Added line #L183 was not covered by tests
Expand Down

0 comments on commit b337148

Please sign in to comment.