diff --git a/packages/riverpod_graph/lib/src/analyze.dart b/packages/riverpod_graph/lib/src/analyze.dart index 6c3889f30..4f733bfa5 100644 --- a/packages/riverpod_graph/lib/src/analyze.dart +++ b/packages/riverpod_graph/lib/src/analyze.dart @@ -96,7 +96,8 @@ Future analyze( bool verifyRootDirectoryExists(String rootDirectory) { if (!Directory(rootDirectory).existsSync()) { throw FileSystemException( - 'Requested scanning target directory does not exist $rootDirectory'); + 'Requested scanning target directory does not exist $rootDirectory', + ); } return true; } diff --git a/packages/riverpod_graph/test/analyze_test.dart b/packages/riverpod_graph/test/analyze_test.dart index 5a26f7933..9f97cba05 100644 --- a/packages/riverpod_graph/test/analyze_test.dart +++ b/packages/riverpod_graph/test/analyze_test.dart @@ -1,5 +1,3 @@ -// ignore_for_file: avoid_types_on_closure_parameters - import 'dart:io'; import 'package:riverpod_graph/src/analyze.dart'; @@ -9,9 +7,8 @@ import 'package:test/test.dart'; void main() { group('flutter graph analyzer tests', () { test('throw exception if analysis target directory does not exist', () { - // expect(() => verifyRootDirectoryExists('dogfood'), - // throwsA(isA()) - // ); + expect(() => verifyRootDirectoryExists('dogfood'), + throwsA(isA())); }); test('returns true if analysis target directory does exist', () {