Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
skydread1 committed Aug 4, 2023
1 parent 80bf6e5 commit baa6444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/test/flybot/server/core/handler/operation_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@
:role :admin
:user-email admin-email}}
(sut/grant-admin-role (d/db db-conn) admin-email)))))
(testing "Editor role case where not previous role is required."
(testing "Editor role case where no previous role is required."
(with-redefs [utils/mk-date (constantly s/charlie-date-granted)]
(let [new-role {:role/name :editor :role/date-granted s/charlie-date-granted}
updated-charlie (update s/charlie-user :user/roles conj new-role)
updated-charlie (assoc s/charlie-user :user/roles [new-role])
effects (assoc s/charlie-user :user/roles [new-role])]
(is (= {:response updated-charlie
:effects {:db {:payload [effects]}}}
Expand Down

0 comments on commit baa6444

Please sign in to comment.