Skip to content

Commit

Permalink
fix UT and added console
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdulWahab3181 committed Jul 4, 2024
1 parent b5765d2 commit 51ec708
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions handlers/workspaces_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1226,8 +1226,10 @@ func TestGetUserDropdownWorkspaces(t *testing.T) {
db.TestDB.CreateOrEditPerson(person)
db.TestDB.CreateOrEditPerson(person2)

workspaceUuid := "workspace_uuid"

workspace := db.Workspace{
Uuid: "workspace_uuid",
Uuid: workspaceUuid,
Name: "workspace_name",
OwnerPubKey: "person.OwnerPubkey",
Github: "gtihub",
Expand Down Expand Up @@ -1285,7 +1287,9 @@ func TestGetUserDropdownWorkspaces(t *testing.T) {
t.Fatal(err)
}

updatedWorkspace := db.TestDB.GetWorkspaceByUuid(workspace.Uuid)
fmt.Println("workspaceUuid: ", workspaceUuid)

updatedWorkspace := db.TestDB.GetWorkspaceByUuid(workspaceUuid)
updatedWorkspaces := []db.Workspace{updatedWorkspace}

assert.NotEmpty(t, responseWorkspaces)
Expand Down

0 comments on commit 51ec708

Please sign in to comment.