Skip to content

Commit

Permalink
Add integration test for updating the current user (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
abitofevrything authored Apr 25, 2024
1 parent 63a9b26 commit efdf25c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/integration/rest_integration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,15 @@ void main() {
await expectLater(client.users.fetchCurrentUser(), completes);
await expectLater(client.users.listCurrentUserGuilds(), completes);
await expectLater(client.users.fetchCurrentUserConnections(), completes);

final avatar = (await client.user.get()).avatar;

await expectLater(
client.users.updateCurrentUser(UserUpdateBuilder(
avatar: ImageBuilder(data: await avatar.fetch(), format: avatar.defaultFormat.extension),
)),
completes,
);
});

test('channels', skip: testTextChannel != null ? false : 'No test channel provided', () async {
Expand Down

0 comments on commit efdf25c

Please sign in to comment.