Skip to content

Commit

Permalink
completed tests for authentication data layer and splash screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Uuttssaavv committed Aug 30, 2022
1 parent 6e6dba9 commit 60da3de
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 106 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
pubspec.lock
25 changes: 25 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "flutter_project",
"request": "launch",
"type": "dart"
},
{
"name": "flutter_project (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "flutter_project (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
89 changes: 83 additions & 6 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ packages:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
version: "43.0.0"
version: "46.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
version: "4.3.1"
version: "4.6.0"
args:
dependency: transitive
description:
Expand All @@ -35,14 +35,14 @@ packages:
name: auto_route
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0"
version: "5.0.1"
auto_route_generator:
dependency: "direct dev"
description:
name: auto_route_generator
url: "https://pub.dartlang.org"
source: hosted
version: "5.0.0"
version: "5.0.2"
bloc:
dependency: "direct main"
description:
Expand Down Expand Up @@ -162,6 +162,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.2"
coverage:
dependency: transitive
description:
name: coverage
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.2"
crypto:
dependency: transitive
description:
Expand Down Expand Up @@ -387,13 +394,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
mocktail:
dependency: "direct dev"
description:
name: mocktail
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.0"
nested:
dependency: transitive
description:
name: nested
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
node_preamble:
dependency: transitive
description:
name: node_preamble
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
package_config:
dependency: transitive
description:
Expand Down Expand Up @@ -526,7 +547,7 @@ packages:
name: shared_preferences_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.0"
shared_preferences_web:
dependency: transitive
description:
Expand All @@ -548,6 +569,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.2"
shelf_packages_handler:
dependency: transitive
description:
name: shelf_packages_handler
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.1"
shelf_static:
dependency: transitive
description:
name: shelf_static
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
shelf_web_socket:
dependency: transitive
description:
Expand All @@ -574,6 +609,20 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.2"
source_map_stack_trace:
dependency: transitive
description:
name: source_map_stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.0"
source_maps:
dependency: transitive
description:
name: source_maps
url: "https://pub.dartlang.org"
source: hosted
version: "0.10.10"
source_span:
dependency: transitive
description:
Expand Down Expand Up @@ -616,13 +665,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
test:
dependency: transitive
description:
name: test
url: "https://pub.dartlang.org"
source: hosted
version: "1.21.1"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.9"
test_core:
dependency: transitive
description:
name: test_core
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.13"
timing:
dependency: transitive
description:
Expand All @@ -644,6 +707,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
vm_service:
dependency: transitive
description:
name: vm_service
url: "https://pub.dartlang.org"
source: hosted
version: "8.3.0"
watcher:
dependency: transitive
description:
Expand All @@ -658,6 +728,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
webkit_inspection_protocol:
dependency: transitive
description:
name: webkit_inspection_protocol
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
win32:
dependency: transitive
description:
Expand All @@ -671,7 +748,7 @@ packages:
name: xdg_directories
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0+1"
version: "0.2.0+2"
xml:
dependency: transitive
description:
Expand Down
69 changes: 0 additions & 69 deletions test/features/services/user_cache_service_test.dart

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ void main() {
test(
'should call get user method when checking user',
() async {
//arrange
await userUsecase.checkIfUserLoggedIn();
verify(() => mockCacheService.getUser());
},
Expand Down
8 changes: 7 additions & 1 deletion test/features/splash/presentation/splash_screen_test.dart
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
void main() {}
import 'package:flutter_test/flutter_test.dart';

void main() {
testWidgets('description', (WidgetTester tester) async {
//
});
}
29 changes: 0 additions & 29 deletions test/widget_test.dart

This file was deleted.

0 comments on commit 60da3de

Please sign in to comment.