Skip to content

Commit

Permalink
#36 fixed tests that used the wrong routes
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroves committed Sep 28, 2023
1 parent cff7028 commit ec3e009
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task Get_an_article_that_was_just_created()
var article = await _articleCollectionProvider.CreateArticleInDatabase(authorUsername: author.Username);

// act
var response = await WebClient.GetAsync($"api/article/{article.Slug}");
var response = await WebClient.GetAsync($"api/articles/{article.Slug}");
var responseString = await response.Content.ReadAsStringAsync();
var articleViewModel = responseString.SubDoc<ArticleViewModel>("article");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public async Task Valid_unfavoriting_of_article()
await _favoriteCollectionProvider.AddFavoriteInDatabase(_user.Username, article.Slug);

// act
var response = await WebClient.DeleteAsync($"api/article/{article.Slug}/favorite");
var response = await WebClient.DeleteAsync($"api/articles/{article.Slug}/unfavorite");

// assert
Assert.That(response.StatusCode, Is.EqualTo(HttpStatusCode.OK));
Expand Down

0 comments on commit ec3e009

Please sign in to comment.