Skip to content

Commit

Permalink
fixed unit test that is not related
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtabBukhari authored Jul 4, 2024
1 parent ab517b8 commit bc74504
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions handlers/features_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,8 @@ func TestGetFeaturePhaseByUUID(t *testing.T) {

featurePhase.Created = returnedFeaturePhases.Created
featurePhase.Updated = returnedFeaturePhases.Updated
featurePhase.CreatedBy = returnedFeaturePhases.CreatedBy
featurePhase.UpdatedBy = returnedFeaturePhases.UpdatedBy

assert.Equal(t, http.StatusOK, rr.Code)
assert.Equal(t, featurePhase, returnedFeaturePhases)
Expand Down Expand Up @@ -979,7 +981,7 @@ func TestDeleteStory(t *testing.T) {
}
db.TestDB.CreateOrEditFeatureStory(featureStory)

t.Run("should return 401 error if not authorized", func(t *testing.T) {
t.Run("should return 401 error if user not authorized", func(t *testing.T) {
rr := httptest.NewRecorder()
handler := http.HandlerFunc(fHandler.DeleteStory)

Expand All @@ -993,7 +995,7 @@ func TestDeleteStory(t *testing.T) {
assert.Equal(t, http.StatusUnauthorized, rr.Code)
})

t.Run("should successfully add feature story if request is valid", func(t *testing.T) {
t.Run("should successfully delete feature story if request is valid", func(t *testing.T) {
rr := httptest.NewRecorder()
handler := http.HandlerFunc(fHandler.DeleteStory)

Expand Down

0 comments on commit bc74504

Please sign in to comment.