Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasn committed Dec 31, 2023
1 parent f624efc commit cd0b719
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: c850ca7
resolved-ref: c850ca7b0fd03169babc9e83bc87452dee209fc2
ref: bd33921
resolved-ref: bd33921a35ef17c4a61376a426af744c4ec9ba83
url: "https://github.com/matthiasn/delta_markdown.git"
source: git
version: "0.7.0"
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lotti
description: Achieve your goals and keep your data private with Lotti.
publish_to: 'none'
version: 0.9.396+2304
version: 0.9.396+2305

msix_config:
display_name: LottiApp
Expand Down Expand Up @@ -37,7 +37,7 @@ dependencies:
delta_markdown:
git:
url: https://github.com/matthiasn/delta_markdown.git
ref: c850ca7
ref: bd33921

device_info_plus: ^9.0.0
drift: ^2.11.1
Expand Down
2 changes: 0 additions & 2 deletions test/widgets/journal/editor/editor_widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import 'package:lotti/database/logging_db.dart';
import 'package:lotti/get_it.dart';
import 'package:lotti/logic/persistence_logic.dart';
import 'package:lotti/services/editor_state_service.dart';
import 'package:lotti/services/link_service.dart';
import 'package:lotti/services/tags_service.dart';
import 'package:lotti/services/time_service.dart';
import 'package:lotti/services/vector_clock_service.dart';
Expand All @@ -29,7 +28,6 @@ void main() {
getIt
..registerSingleton<LoggingDb>(LoggingDb(inMemoryDatabase: true))
..registerSingleton<VectorClockService>(MockVectorClockService())
..registerSingleton<LinkService>(MockLinkService())
..registerSingleton<JournalDb>(JournalDb(inMemoryDatabase: true))
..registerSingleton<EditorDb>(EditorDb(inMemoryDatabase: true))
..registerSingleton<PersistenceLogic>(MockPersistenceLogic())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import 'package:lotti/blocs/journal/entry_cubit.dart';
import 'package:lotti/blocs/journal/entry_state.dart';
import 'package:lotti/database/database.dart';
import 'package:lotti/get_it.dart';
import 'package:lotti/services/link_service.dart';
import 'package:lotti/services/tags_service.dart';
import 'package:lotti/widgets/journal/entry_details/entry_detail_header.dart';
import 'package:material_design_icons_flutter/material_design_icons_flutter.dart';
Expand All @@ -21,6 +22,7 @@ void main() {
setUpAll(() {
getIt
..registerSingleton<JournalDb>(JournalDb(inMemoryDatabase: true))
..registerSingleton<LinkService>(MockLinkService())
..registerSingleton<TagsService>(TagsService());

when(() => entryCubit.showMap).thenAnswer((_) => false);
Expand Down

0 comments on commit cd0b719

Please sign in to comment.