Skip to content

Commit

Permalink
Run dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
abitofevrything committed Sep 23, 2024
1 parent 6f43818 commit 840a0cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/src/extensions/list.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import 'package:nyxx/nyxx.dart';

/// Extensions for fetching lists of [SnowflakeEntity]s.
extension PartialList<T extends SnowflakeEntity<T>>
on List<SnowflakeEntity<T>> {
extension PartialList<T extends SnowflakeEntity<T>> on List<SnowflakeEntity<T>> {
/// Get all the entities in this list using the cached entity if possible.
Future<List<T>> get() => Future.wait(map((entity) => entity.get()));

Expand Down
3 changes: 2 additions & 1 deletion test/unit/sanitizer_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import 'package:test/test.dart';

const _whitespaceCharacter = "‎";

final sampleContent = '<@1234> test <@!2345> test2 <@&3456> test3 <#4567> test4 <a:test_emoji:5678> test5 <:test_emoji:6789> test6 </test command:123456789123456789>';
final sampleContent =
'<@1234> test <@!2345> test2 <@&3456> test3 <#4567> test4 <a:test_emoji:5678> test5 <:test_emoji:6789> test6 </test command:123456789123456789>';
final removed = ' test test2 test3 test4 test5 test6 ';
final sanitized =
'<@${_whitespaceCharacter}1234> test <@${_whitespaceCharacter}2345> test2 <@&${_whitespaceCharacter}3456> test3 <#${_whitespaceCharacter}4567> test4 <${_whitespaceCharacter}a\\:test_emoji\\:5678> test5 <$_whitespaceCharacter\\:test_emoji\\:6789> test6 </${_whitespaceCharacter}test command:123456789123456789>';
Expand Down

0 comments on commit 840a0cd

Please sign in to comment.