summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/notes_spec.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/javascripts/notes_spec.js b/spec/javascripts/notes_spec.js
index 0c4cd07134f..12cf3661ed7 100644
--- a/spec/javascripts/notes_spec.js
+++ b/spec/javascripts/notes_spec.js
@@ -371,18 +371,6 @@ import '~/notes';
});
});
- describe('stripSlashCommands', () => {
- const REGEX_SLASH_COMMANDS = /\/\w+/g;
-
- it('should strip slash commands from the comment', () => {
- this.notes = new Notes();
- const sampleComment = '/wip /milestone %1.0 /merge /unassign Merging this';
- const stripedComment = this.notes.stripSlashCommands(sampleComment);
-
- expect(REGEX_SLASH_COMMANDS.test(stripedComment)).toBeFalsy();
- });
- });
-
describe('generatePlaceholderNoteContent', () => {
const availableSlashCommands = [
{ name: 'close', description: 'Close this issue', params: [] },