[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Bump google_mobile_ads from 4.0.0 to 5.0.0 in /flutter_news_example/packages/news_blocks_ui #1153

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix app_ui tests
  • Loading branch information
matiasleyba committed May 6, 2024
commit 0cf056ea5604167c973794b8c7193cf6693c7a6f
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void main() {
group('navigates', () {
testWidgets('back when press the icon button', (tester) async {
final navigator = MockNavigator();
when(navigator.canPop).thenAnswer((_) => true);
when(navigator.pop).thenAnswer((_) async {});
await tester.pumpApp(
const AppBackButton(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ void main() {
final theme = AppTheme().themeData;
final buttonTextTheme = theme.textTheme.labelLarge!.copyWith(
inherit: false,
leadingDistribution: TextLeadingDistribution.even,
);

testWidgets('renders button', (tester) async {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ void main() {
);

expect(
Theme.of(capturedContext).textTheme.displayLarge,
Theme.of(capturedContext).textTheme.labelLarge,
equals(
AppTheme.uiTextTheme.displayLarge!.copyWith(
theme.textTheme.labelLarge!.copyWith(
inherit: false,
leadingDistribution: TextLeadingDistribution.even,
),
),
);
Expand All @@ -42,10 +43,11 @@ void main() {
);

expect(
Theme.of(capturedContext).textTheme.displayLarge,
Theme.of(capturedContext).textTheme.labelLarge,
equals(
AppTheme.contentTextTheme.displayLarge!.copyWith(
AppTheme.contentTextTheme.labelLarge!.copyWith(
inherit: false,
leadingDistribution: TextLeadingDistribution.even,
),
),
);
Expand Down
Loading