File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ Response onRequest(RequestContext context) {
206
206
207
207
### Testing 🧪
208
208
209
- In Dart Frog, we can unit test our route handlers and middleware effectively because they are just pure functions.
209
+ In Dart Frog, we can unit test our route handlers and middleware effectively because they are plain functions.
210
210
211
211
For example, we can test our route handler above using ` package:test ` :
212
212
Original file line number Diff line number Diff line change
1
+ import 'package:dart_frog/dart_frog.dart' ;
2
+
3
+ Response onRequest (RequestContext context) {
4
+ return Response (body: 'Welcome to Dart Frog!' );
5
+ }
Original file line number Diff line number Diff line change 1
1
name : dart_frog
2
- description : A fast, minimalistic backend framework for Dart
2
+ description : A fast, minimalistic backend framework for Dart built by Very Good Ventures.
3
3
version : 0.0.1-dev.2
4
4
homepage : https://github.com/VeryGoodOpenSource/dart_frog
5
5
You can’t perform that action at this time.
0 commit comments