Skip to content

Commit

Permalink
Created more test skeletons for handler#JoinClass
Browse files Browse the repository at this point in the history
  • Loading branch information
samarthupadhyaya27 committed Jan 6, 2022
1 parent 0c0c1f4 commit a93648a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions handler/class_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,19 @@ func TestJoinClass(t *testing.T) {
require.NoError(t, d.StoreClass(context.Background(), db.Class{}))
/* req := httptest.NewRequest(http.MethodPost, "/", strings.NewReader(`{"uid": ""}`)) */
})
t.Run("missingUser", func(t *testing.T) {
t.Run("missingUID", func(t *testing.T) {

})
t.Run("missingProgram", func(t *testing.T) {
t.Run("missingCID", func(t *testing.T) {

})
t.Run("improperBody", func(t *testing.T) {

})
t.Run("userAlreadyInClass", func(t *testing.T) {

})
t.Run("classAlreadyWithUser", func(t *testing.T) {

})
}

0 comments on commit a93648a

Please sign in to comment.