Skip to content

Commit

Permalink
fix json recommended_action naming, enable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeadi committed Oct 15, 2024
1 parent 2d82dc4 commit d1e8cf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/Models/Activity.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;

Check warning on line 2 in src/Models/Activity.cs

View workflow job for this annotation

GitHub Actions / Run tests

Using directives should be ordered alphabetically by the namespaces

Check warning on line 2 in src/Models/Activity.cs

View workflow job for this annotation

GitHub Actions / Run tests

Using directives should be ordered alphabetically by the namespaces

Check warning on line 2 in src/Models/Activity.cs

View workflow job for this annotation

GitHub Actions / Run tests

Using directives should be ordered alphabetically by the namespaces

Check warning on line 2 in src/Models/Activity.cs

View workflow job for this annotation

GitHub Actions / Run tests

Using directives should be ordered alphabetically by the namespaces
using Newtonsoft.Json;

namespace Stream.Models
{
Expand Down Expand Up @@ -46,6 +47,7 @@ public class AddActivitiesResponse : ResponseBase
public class ModerationResponse
{
public string Status { get; set; }
[JsonProperty("recommended_action")]
public string RecommendedAction { get; set; }
public APIError APIError { get; set; }
}
Expand Down
5 changes: 0 additions & 5 deletions tests/ModerationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ namespace StreamNetTests
public class ModerationTests : TestBase
{
[Test]
[Ignore("The api is not deployed yet")]
public async Task TestModerationTemplate()
{
var newActivity2 = new Activity("1", "test", "2")
Expand All @@ -39,7 +38,6 @@ public async Task TestModerationTemplate()
}

[Test]
[Ignore("The api is not deployed yet")]
public async Task TestReactionModeration()
{
var a = new Activity("user:1", "like", "cake")
Expand Down Expand Up @@ -70,7 +68,6 @@ public async Task TestReactionModeration()
}

[Test]
[Ignore("The api is not deployed yet")]
public async Task TestFlagUser()
{
var userId = Guid.NewGuid().ToString();
Expand All @@ -91,7 +88,6 @@ public async Task TestFlagUser()
}

[Test]
[Ignore("The api is not deployed yet")]
public async Task TestFlagActivity()
{
var newActivity = new Activity("vishal", "test", "1");
Expand All @@ -108,7 +104,6 @@ public async Task TestFlagActivity()
}

[Test]
[Ignore("The api is not deployed yet")]
public async Task TestFlagReaction()
{
var a = new Activity("user:1", "like", "cake")
Expand Down

0 comments on commit d1e8cf5

Please sign in to comment.