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
{{ message }}
This repository was archived by the owner on Aug 3, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: test/commands.ts
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -245,6 +245,18 @@ export default async function () {
245
245
})
246
246
.catch((err)=>done(err));
247
247
});
248
+
test('test cleanCommand',function(){
249
+
lettext=
250
+
'@bot Deploy PR\n\n-- \nYou are receiving this because you were mentioned.\nReply to this email directly or view it on GitHub:\nhttps://github.com/phpmyadmin/phpmyadmin/pull/15493#issuecomment-552420382';
'@bot Deploy PR\n\nYou are receiving this because you were mentioned.\nReply to this email directly or view it on GitHub:\nhttps://github.com/phpmyadmin/phpmyadmin/pull/15493#issuecomment-552420382';
256
+
expect(commands.cleanCommand(text)).to.equal(
257
+
'@bot Deploy PR\n\nYou are receiving this because you were mentioned.ref:phpmyadmin/phpmyadmin/pull/15493#-552420382'
258
+
);
259
+
});
248
260
/*test('test deploy and merge a into b', function(done) {
249
261
let command = commands.getCommand('Deploy and merge QA into master');
0 commit comments