From 908e1f70843a31906625dd326face987f874627d Mon Sep 17 00:00:00 2001 From: Lexedia Date: Sun, 5 Jan 2025 02:25:45 +0100 Subject: [PATCH] add tests --- test/unit/http/managers/user_manager_test.dart | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/unit/http/managers/user_manager_test.dart b/test/unit/http/managers/user_manager_test.dart index 72928951b..d3a057fab 100644 --- a/test/unit/http/managers/user_manager_test.dart +++ b/test/unit/http/managers/user_manager_test.dart @@ -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) { @@ -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 = {