Skip to content

Commit

Permalink
Clean up comments further
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Aug 18, 2023
1 parent bd4387d commit 66c4d91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,12 @@ void main() {
// You can call it without stubbing.
cat.sleep();

// Non-null properties and return values return reasonable defaults.
// Non-null properties and function return values
// default to reasonable defaults.
expect(cat.lives, 0);

// Nullable properties and return values return null unless you stub it.
// Nullable properties and function return values
// default to null unless you stub them.
expect(cat.sound(), null);
expect(cat.eatFood('Milk'), null);

Expand Down

0 comments on commit 66c4d91

Please sign in to comment.