[url_launcher_web] Fix a typo in a test name and fix quote consistency (#3010)
Fix a typo in a test name and fix quote consistency.
diff --git a/packages/url_launcher/url_launcher_web/CHANGELOG.md b/packages/url_launcher/url_launcher_web/CHANGELOG.md
index 4bf47fe..b121893 100644
--- a/packages/url_launcher/url_launcher_web/CHANGELOG.md
+++ b/packages/url_launcher/url_launcher_web/CHANGELOG.md
@@ -1,3 +1,7 @@
+# 0.1.3+2
+
+- Fix a typo in a test name and fix some style inconsistencies.
+
# 0.1.3+1
- Depend explicitly on the `platform_interface` package that adds the `webOnlyWindowName` parameter.
diff --git a/packages/url_launcher/url_launcher_web/pubspec.yaml b/packages/url_launcher/url_launcher_web/pubspec.yaml
index 6c1285f..d206c0f 100644
--- a/packages/url_launcher/url_launcher_web/pubspec.yaml
+++ b/packages/url_launcher/url_launcher_web/pubspec.yaml
@@ -4,7 +4,7 @@
# 0.1.y+z is compatible with 1.0.0, if you land a breaking change bump
# the version to 2.0.0.
# See more details: https://github.com/flutter/flutter/wiki/Package-migration-to-1.0.0
-version: 0.1.3+1
+version: 0.1.3+2
flutter:
plugin:
diff --git a/packages/url_launcher/url_launcher_web/test/url_launcher_web_test.dart b/packages/url_launcher/url_launcher_web/test/url_launcher_web_test.dart
index 9cbaf68..56f23a4 100644
--- a/packages/url_launcher/url_launcher_web/test/url_launcher_web_test.dart
+++ b/packages/url_launcher/url_launcher_web/test/url_launcher_web_test.dart
@@ -145,17 +145,17 @@
verify(mockWindow.open('sms:+19725551212?body=hello%20there', ''));
});
- test('setting oOnlyLinkTarget as _self opens the url in the same tab',
+ test('setting webOnlyLinkTarget as _self opens the url in the same tab',
() {
- plugin.openNewWindow("https://www.google.com",
- webOnlyWindowName: "_self");
+ plugin.openNewWindow('https://www.google.com',
+ webOnlyWindowName: '_self');
verify(mockWindow.open('https://www.google.com', '_self'));
});
test('setting webOnlyLinkTarget as _blank opens the url in a new tab',
() {
- plugin.openNewWindow("https://www.google.com",
- webOnlyWindowName: "_blank");
+ plugin.openNewWindow('https://www.google.com',
+ webOnlyWindowName: '_blank');
verify(mockWindow.open('https://www.google.com', '_blank'));
});
@@ -197,9 +197,9 @@
test(
'mailto urls should use _blank if webOnlyWindowName is set as _blank',
() {
- plugin.openNewWindow("mailto:name@mydomain.com",
- webOnlyWindowName: "_blank");
- verify(mockWindow.open("mailto:name@mydomain.com", "_blank"));
+ plugin.openNewWindow('mailto:name@mydomain.com',
+ webOnlyWindowName: '_blank');
+ verify(mockWindow.open('mailto:name@mydomain.com', '_blank'));
});
});
});