Skip to content

Commit

Permalink
MLPAB-1785 Create new AppData in tests instead of modifying global (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hawx authored Feb 28, 2024
1 parent f8dd24b commit 8e21927
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/page/supporter/edit_member_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,10 @@ func TestPostEditMember(t *testing.T) {
Put(r.Context(), tc.expectedMember).
Return(nil)

testAppData.LoginSessionEmail = "[email protected]"
testAppData.Permission = tc.userPermission

err := EditMember(nil, memberStore)(testAppData, w, r, &actor.Organisation{})
err := EditMember(nil, memberStore)(page.AppData{
LoginSessionEmail: "[email protected]",
Permission: tc.userPermission,
}, w, r, &actor.Organisation{})
resp := w.Result()

assert.Nil(t, err)
Expand Down

0 comments on commit 8e21927

Please sign in to comment.