We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
setMockInitialValues
1 parent e14446f commit 1db5d88Copy full SHA for 1db5d88
test/widgets/intro_message_test.dart
@@ -1,9 +1,16 @@
1
import 'package:flutter/material.dart';
2
import 'package:flutter_test/flutter_test.dart';
3
import 'package:apidash/widgets/intro_message.dart';
4
+import 'package:package_info_plus/package_info_plus.dart';
5
6
void main() {
7
testWidgets('Testing Intro Message', (tester) async {
8
+ PackageInfo.setMockInitialValues(
9
+ appName: 'API Dash',
10
+ packageName: 'dev.apidash.apidash',
11
+ version: '1.0.0',
12
+ buildNumber: '1',
13
+ buildSignature: 'buildSignature');
14
await tester.pumpWidget(
15
const MaterialApp(
16
title: 'Intro Message',
0 commit comments