Skip to content

Commit

Permalink
Fixed circular dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pkirilin committed Dec 2, 2023
1 parent 182b929 commit 5807a10
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/frontend/tests/mockApi/categories/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { db } from '../db';
import data from './categories.data.json';

export { handlers as categoriesHandlers } from './categories.handlers';
export * as categoriesService from './categories.service';

export const fillCategories = (): void => {
data.forEach(category => {
Expand Down
1 change: 0 additions & 1 deletion src/frontend/tests/mockApi/notes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { db } from '../db';
import data from './notes.data.json';

export { handlers as notesHandlers } from './notes.handlers';
export * as notesService from './notes.service';

export const fillNotes = (): void => {
data.forEach(note => {
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/tests/mockApi/notes/notes.handlers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { http, type HttpHandler, HttpResponse, type PathParams } from 'msw';
import { API_URL } from 'src/config';
import { type NoteCreateEdit } from 'src/features/notes';
import { notesService } from '.';
import * as notesService from './notes.service';

export const handlers: HttpHandler[] = [
http.get(`${API_URL}/api/v1/notes`, ({ request }) => {
Expand Down
1 change: 0 additions & 1 deletion src/frontend/tests/mockApi/pages/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { db } from '../db';
import data from './pages.data.json';

export { handlers as pagesHandlers } from './pages.handlers';
export * as pagesService from './pages.service';

export const fillPages = (): void => {
data.forEach(page => {
Expand Down
1 change: 0 additions & 1 deletion src/frontend/tests/mockApi/products/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { db } from '../db';
import data from './products.data.json';

export { handlers as productsHandlers } from './products.handlers';
export * as productsService from './products.service';

export const fillProducts = (): void => {
data.forEach(product => {
Expand Down

0 comments on commit 5807a10

Please sign in to comment.