Skip to content

Commit 62fefe8

Browse files
gnpricechrisbobbe
authored andcommitted
text test [nfc]: Specify return types of matchesWeight and matchesFontFamilies
1 parent bfe52fa commit 62fefe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/widgets/text_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ void main() {
3333
return result;
3434
}
3535

36-
matchesFontFamilies(Subject<TextStyle> it) => it
36+
void matchesFontFamilies(Subject<TextStyle> it) => it
3737
..fontFamily.equals(kDefaultFontFamily)
3838
..fontFamilyFallback.isNotNull().deepEquals(defaultFontFamilyFallback);
3939

40-
matchesWeight(FontWeight weight) => (Subject<TextStyle> it) => it
40+
Condition<TextStyle> matchesWeight(FontWeight weight) => (Subject<TextStyle> it) => it
4141
..fontWeight.equals(weight)
4242
..fontVariations.isNotNull().contains(
4343
FontVariation('wght', wghtFromFontWeight(weight)));

0 commit comments

Comments
 (0)