You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// if someone accepts using the default decline reason, blank it.
37
+
// we can't combine this line with the above because the default decline reason can also be entered by the user, and this is common because it's the default reason in the HTML form.
Copy file name to clipboardExpand all lines: UnblockReview/tests/UnblockReview.test.js
+22Lines changed: 22 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -255,4 +255,26 @@ Seem’st thou thrive if he did banish thee, arm against thy quarrel.`;
255
255
`{{unblock reviewed|decline=Please use your other account. ~~~~|1=I was blocked a few days ago for... <span style="font-family:'Courier New', monospace;">[[User:Test]]</span>}}`;
test('Add {{subst:Decline reason here}} when declining with a blank reason',()=>{
260
+
constwikitext=
261
+
`{{unblock|1=I was blocked a few days ago for... <span style="font-family:'Courier New', monospace;">[[User:Test]]</span>}}`;
262
+
constparamsAndReason=`I was blocked a few days ago for...`;
263
+
constacceptDeclineReason=``;
264
+
constacceptOrDecline=`decline`;
265
+
constexpected=
266
+
`{{unblock reviewed|decline={{subst:Decline reason here}} ~~~~|1=I was blocked a few days ago for... <span style="font-family:'Courier New', monospace;">[[User:Test]]</span>}}`;
0 commit comments