Skip to content

Commit

Permalink
fix: dart formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thisissandipp committed Jul 18, 2024
1 parent 6802a95 commit 4f59bc8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/api/sudoku_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ abstract class SudokuAPI {
const SudokuAPI();

/// Creates a [Sudoku] game depending upon the `difficulty`.
///
///
/// Sends a HTTP request to the sudoku backend, which utilises
/// Firebase Genkit to generate a sudoku.
///
///
/// Throws [SudokuAPIClientException] when there's an error during
/// the http operation.
///
///
/// Throws a [SudokuInvalidRawDataException] when there's an error
/// during converting the raw data into [Sudoku] object.
Future<Sudoku> createSudoku({required Difficulty difficulty});
Expand Down
3 changes: 1 addition & 2 deletions test/widgets/sudoku_failure_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ void main() {
expect(
find.byWidgetPredicate(
(widget) =>
widget is Text &&
widget.data == l10n.errorClientDialogSubtitle,
widget is Text && widget.data == l10n.errorClientDialogSubtitle,
),
findsOneWidget,
);
Expand Down
4 changes: 2 additions & 2 deletions test/widgets/sudoku_loading_dialog_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ void main() {

testWidgets('renders on a medium layout', (tester) async {
tester.setMediumDisplaySize();

await tester.pumpApp(widget);
expect(find.byKey(mediumLoadingKey), findsOneWidget);
});

testWidgets('renders on a small layout', (tester) async {
tester.setSmallDisplaySize();

await tester.pumpApp(widget);
expect(find.byKey(smallLoadingKey), findsOneWidget);
});
Expand Down

0 comments on commit 4f59bc8

Please sign in to comment.