Skip to content

Commit fb89213

Browse files
committed
write test for modTemplate in AddChildAsync
1 parent e163bc7 commit fb89213

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/ModerationTests.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ public async Task TestReactionModeration()
8787
var updatedResponse2 = updatedReaction2.GetModerationResponse();
8888
Assert.AreEqual("complete", updatedResponse2.Status);
8989
Assert.AreEqual("remove", updatedResponse2.RecommendedAction);
90+
91+
var c1 = await Client.Reactions.AddChildAsync(r.Id, "upvote", "tommy", updatedData, null, "moderation_config_1_reaction");
92+
Assert.NotNull(c1);
93+
94+
var updatedResponse2 = c1.GetModerationResponse();
95+
Assert.AreEqual("complete", c1.Status);
96+
Assert.AreEqual("remove", c1.RecommendedAction);
9097
}
9198

9299
[Test]
@@ -156,4 +163,4 @@ public async Task TestFlagReaction()
156163
Assert.NotNull(response);
157164
}
158165
}
159-
}
166+
}

0 commit comments

Comments
 (0)