aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2018-07-07 09:15:51 -0700
committerKen Swenson <[email protected]>2018-11-06 20:37:21 -0500
commit75c54656bf904ec5df991bd39bbb952b7f230a54 (patch)
treeef5227be6ab81cb8dae6a282331bc2bef71ed6ee /tests
parentAdd test and fix another newline difference (diff)
downloadserenity-75c54656bf904ec5df991bd39bbb952b7f230a54.tar.xz
serenity-75c54656bf904ec5df991bd39bbb952b7f230a54.zip
Fix ActivityFlags/ActivityTimestamps deser
Diffstat (limited to 'tests')
-rw-r--r--tests/resources/guild_create_2.json28
-rw-r--r--tests/test_deser.rs1
2 files changed, 29 insertions, 0 deletions
diff --git a/tests/resources/guild_create_2.json b/tests/resources/guild_create_2.json
new file mode 100644
index 0000000..df6e3ee
--- /dev/null
+++ b/tests/resources/guild_create_2.json
@@ -0,0 +1,28 @@
+{
+ "voice_states": [],
+ "verification_level": 1,
+ "unavailable": false,
+ "system_channel_id": "147776888092229633",
+ "splash": null,
+ "roles": [],
+ "region": "frankfurt",
+ "presences": [],
+ "owner_id": "147802895625093121",
+ "name": "Baka X",
+ "mfa_level": 0,
+ "members": [],
+ "member_count": 49,
+ "lazy": true,
+ "large": false,
+ "joined_at": "2017-10-08T14:45:01.435000+00:00",
+ "id": "147776888092229633",
+ "icon": "32fca57f35b60772ba29adc1c826f297",
+ "features": [],
+ "explicit_content_filter": 0,
+ "emojis": [],
+ "default_message_notifications": 0,
+ "channels": [],
+ "application_id": null,
+ "afk_timeout": 1800,
+ "afk_channel_id": "147780166708363265"
+} \ No newline at end of file
diff --git a/tests/test_deser.rs b/tests/test_deser.rs
index dde1ff6..3ac4d04 100644
--- a/tests/test_deser.rs
+++ b/tests/test_deser.rs
@@ -74,6 +74,7 @@ fn guild_some_application_id() {
#[test]
fn guild_create() {
p!(GuildCreateEvent, "guild_create_1");
+ p!(GuildCreateEvent, "guild_create_2");
}
#[test]