Skip to content
Merged
Changes from all commits
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
14 changes: 9 additions & 5 deletions test/crypto_subtle_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void main() {
false,
)
.having(
(key) => key.usages,
(key) => key.usages.toDartList,
'usages',
containsAll(['encrypt', 'decrypt']),
),
Expand Down Expand Up @@ -198,7 +198,7 @@ void main() {
true,
)
.having(
(key) => key.publicKey.usages,
(key) => key.publicKey.usages.toDartList,
'publicKey.usages',
['encrypt'],
)
Expand All @@ -213,7 +213,7 @@ void main() {
false,
)
.having(
(key) => key.privateKey.usages,
(key) => key.privateKey.usages.toDartList,
'privateKey.usages',
['decrypt'],
),
Expand Down Expand Up @@ -246,7 +246,7 @@ void main() {
true,
)
.having(
(key) => key.publicKey.usages,
(key) => key.publicKey.usages.toDartList,
'publicKey.usages',
['encrypt'],
)
Expand All @@ -261,7 +261,7 @@ void main() {
false,
)
.having(
(key) => key.privateKey.usages,
(key) => key.privateKey.usages.toDartList,
'privateKey.usages',
['decrypt'],
),
Expand Down Expand Up @@ -293,3 +293,7 @@ void main() {
});
});
}

extension on JSArray<JSString> {
List<String> get toDartList => toDart.map((e) => e.toDart).toList();
}
Loading