Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 29c86f1

Browse files
committed
change test description
1 parent 99441f6 commit 29c86f1

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

packages/file_selector/file_selector_platform_interface/test/x_type_group_test.dart

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,6 @@ void main() {
7979
expect(group.uniformTypeIdentifiers, macUTIs);
8080
});
8181

82-
test('passing only macUTIs should fill macUTIs', () {
83-
const List<String> macUTIs = <String>['public.plain-text'];
84-
const XTypeGroup group = XTypeGroup(
85-
macUTIs: macUTIs,
86-
);
87-
88-
expect(group.macUTIs, macUTIs);
89-
});
90-
9182
test(
9283
'passing only uniformTypeIdentifiers should fill uniformTypeIdentifiers',
9384
() {
@@ -99,7 +90,16 @@ void main() {
9990
expect(group.uniformTypeIdentifiers, uniformTypeIdentifiers);
10091
});
10192

102-
test('passing only uniformTypeIdentifiers should fill macUTIs', () {
93+
test('macUTIs getter return macUTIs value passed in constructor', () {
94+
const List<String> macUTIs = <String>['public.plain-text'];
95+
const XTypeGroup group = XTypeGroup(
96+
macUTIs: macUTIs,
97+
);
98+
99+
expect(group.macUTIs, macUTIs);
100+
});
101+
102+
test('macUTIs getter returns uniformTypeIdentifiers value passed in constructor', () {
103103
const List<String> uniformTypeIdentifiers = <String>['public.plain-text'];
104104
const XTypeGroup group = XTypeGroup(
105105
uniformTypeIdentifiers: uniformTypeIdentifiers,
@@ -108,7 +108,7 @@ void main() {
108108
expect(group.macUTIs, uniformTypeIdentifiers);
109109
});
110110

111-
test('passing uniformTypeIdentifiers and macUTIs should throw', () {
111+
test('passing both uniformTypeIdentifiers and macUTIs should throw', () {
112112
const List<String> macUTIs = <String>['public.plain-text'];
113113
const List<String> uniformTypeIndentifiers = <String>[
114114
'public.plain-images'

0 commit comments

Comments
 (0)