Skip to content

Commit

Permalink
refactor: moved the api_configs file to lib/core/configs folder and c…
Browse files Browse the repository at this point in the history
…hanged the imports in test files
  • Loading branch information
BasakK6 committed Sep 27, 2023
1 parent 5d80ce5 commit bf4007b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:dartz/dartz.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'package:news_app/core/configs/api/api_configs.dart';
import 'package:news_app/core/error/exceptions.dart';
import 'package:news_app/core/error/failures.dart';
import 'package:news_app/core/platform/network_info.dart';
Expand All @@ -10,7 +11,6 @@ import 'package:news_app/features/news_feed/data/models/news_feed_model.dart';
import 'package:news_app/features/news_feed/data/repositories/news_feed_repository_impl.dart';
import 'package:news_app/features/news_feed/domain/entities/news_feed_entity.dart';

import '../../../../core/fixtures/api_configs.dart';
import 'news_feed_repository_impl_test.mocks.dart';

//mock the abstract network info (core/platform)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import 'package:dartz/dartz.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/annotations.dart';
import 'package:mockito/mockito.dart';
import 'package:news_app/core/configs/api/api_configs.dart';
import 'package:news_app/features/news_feed/domain/entities/news_feed_entity.dart';
import 'package:news_app/features/news_feed/domain/repositories/news_feed_repository.dart';
import 'package:news_app/features/news_feed/domain/use_cases/get_news_feed_for_a_category.dart';

import '../../../../core/fixtures/api_configs.dart';
import 'get_news_feed_for_a_category_test.mocks.dart';

//mock the abstract repository in the domain layer
Expand Down

0 comments on commit bf4007b

Please sign in to comment.