Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexedia committed Jan 5, 2025
1 parent eb55d89 commit 908e1f7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/unit/http/managers/user_manager_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ final sampleUser = {
"accent_color": 16711680,
"premium_type": 1,
"public_flags": 64,
"avatar_decoration_data": {
"sku_id": "1144058844004233369",
"asset": "a_fed43ab12698df65902ba06727e20c0e"
},
"clan": {
"identity_guild_id": "80351110224678912",
"identity_enabled": true,
"tag": "CUTE",
"badge": "0fcf9a436df1a4b0de5644d3d42188e2"
}
};

void checkSampleUser(User user) {
Expand All @@ -36,6 +46,12 @@ void checkSampleUser(User user) {
expect(user.flags, equals(UserFlags(64)));
expect(user.nitroType, equals(NitroType.classic));
expect(user.publicFlags, equals(UserFlags(64)));
expect(user.avatarDecorationHash, equals('a_fed43ab12698df65902ba06727e20c0e'));
expect(user.avatarDecorationData!.skuId, equals(Snowflake(1144058844004233369)));
expect(user.clan!.identityGuildId, equals(Snowflake(80351110224678912)));
expect(user.clan!.isIdentityEnabled, isTrue);
expect(user.clan!.tag, equals('CUTE'));
expect(user.clan!.badgeHash, equals('0fcf9a436df1a4b0de5644d3d42188e2'));
}

final sampleConnection = {
Expand Down

0 comments on commit 908e1f7

Please sign in to comment.