-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add dependency injection to make testing easier
- Loading branch information
1 parent
99563bf
commit ba70715
Showing
4 changed files
with
31 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import 'package:catch_my_cadence/models/spotify_controller_model.dart'; | ||
import 'package:catch_my_cadence/screens/main_screen.dart'; | ||
import 'package:flutter/material.dart'; | ||
import 'package:flutter_dotenv/flutter_dotenv.dart'; | ||
import 'package:flutter_test/flutter_test.dart'; | ||
import 'package:http/testing.dart'; | ||
|
||
void main() async { | ||
setUp(() async { | ||
await dotenv.load( | ||
fileName: "assets/secrets.env"); // MainScreen requires secrets | ||
}); | ||
|
||
group("Main Screen", () { | ||
test('', () async {}); | ||
}); | ||
} |
does the client need to be created outside the model or can the model create its own client