Skip to content

Commit 9083682

Browse files
committed
add velocity jasmine and sample unit test - closes RocketChat#1027
1 parent 77c6710 commit 9083682

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

Diff for: .meteor/packages

+2
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,5 @@ spacebars
105105
check
106106
rocketchat:github-enterprise
107107
rocketchat:chatops
108+
109+
velocity:html-reporter

Diff for: .meteor/versions

+16
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ [email protected]
88
99
1010
11+
1112
1213
1314
@@ -101,11 +102,14 @@ [email protected]
101102
102103
103104
105+
104106
105107
106108
107109
108110
111+
practicalmeteor:[email protected]_1
112+
practicalmeteor:[email protected]_2
109113
110114
111115
@@ -146,6 +150,11 @@ rocketchat:[email protected]
146150
147151
148152
153+
154+
155+
156+
157+
149158
150159
151160
@@ -169,6 +178,13 @@ [email protected]
169178
170179
underscorestring:[email protected]
171180
181+
182+
183+
184+
185+
186+
187+
172188
173189
174190

Diff for: packages/rocketchat-markdown/markdown.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ class Markdown
2525
return message
2626

2727
RocketChat.callbacks.add 'renderMessage', Markdown, RocketChat.callbacks.priority.LOW
28-
RocketChat.Markdown = true
28+
RocketChat.Markdown = Markdown

Diff for: tests/jasmine/client/unit/markdowntest.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
describe('Testing rocketchat:markdown', function () {
2+
'use strict';
3+
it('should highlight with bold when surrounded by *', function () {
4+
var output = RocketChat.Markdown({'msg': '', 'html':'*abc123*'});
5+
expect(output.html).toEqual('<span class="copyonly">*</span><strong>abc123</strong><span class="copyonly">*</span>')
6+
});
7+
});

0 commit comments

Comments
 (0)