Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Jan 21, 2024
1 parent 41c5a7f commit 0981e77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
4 changes: 0 additions & 4 deletions backend/tests/api/category_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ func TestCreateCategoryFailsIfCategoryWithThatNameAlreadyExists(t *testing.T) {
AssertNumCategoriesRemainsAtN(app, assert, resp, 1)
}

var TestNumCategoriesRemainsAt1 = func(app TestApp, assert *assert.A, resp *http.Response) {
AssertNumCategoriesRemainsAtN(app, assert, resp, 1)
}

for _, permutation := range AllCasingPermutations(categoryName) {
fmt.Println(permutation)
TestRequest{
Expand Down
4 changes: 1 addition & 3 deletions backend/tests/api/tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func TestGetTagFailsNotFound(t *testing.T) {
)
}
func TestDeleteTagWorks(t *testing.T) {
existingAppAssert := CreateSampleTag(t, "Generate", "Science")
existingAppAssert := CreateSampleTag(t, "Generate", "Science", nil)

TestRequest{
Method: "DELETE",
Expand All @@ -186,8 +186,6 @@ func TestDeleteTagWorks(t *testing.T) {
DBTester: AssertNoTags,
},
)

existingAppAssert.App.DropDB()
}

func TestDeleteTagFailsBadRequest(t *testing.T) {
Expand Down

0 comments on commit 0981e77

Please sign in to comment.