mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: middle click was reading every notifications (#9252)
This commit is contained in:
@@ -32,8 +32,15 @@ widgetTest("sets notification as read on middle click", {
|
||||
},
|
||||
async test(assert) {
|
||||
let requests = 0;
|
||||
pretender.put("/notifications/mark-read", () => {
|
||||
pretender.put("/notifications/mark-read", request => {
|
||||
++requests;
|
||||
|
||||
assert.equal(
|
||||
request.requestBody,
|
||||
`id=${this.args.id}`,
|
||||
"it sets correct request parameters"
|
||||
);
|
||||
|
||||
return [200, { "Content-Type": "application/json" }, { success: true }];
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user