Simplifying rocketchat:markdown tests since its falling because of underscore.string

pull/1045/head
George Secrieru 10 years ago
parent b627c95469
commit 2a459f2db0
  1. 2
      packages/rocketchat-markdown/markdown.coffee
  2. 2
      packages/rocketchat-markdown/package.js
  3. 10
      packages/rocketchat-markdown/tests/jasmine/client/unit/markdown.spec.coffee

@ -6,7 +6,7 @@
class Markdown
constructor: (message) ->
if s.trim message.html
if _.trim message.html
msg = message.html

@ -23,5 +23,5 @@ Package.onTest(function(api) {
api.use('rocketchat:lib');
api.use('rocketchat:markdown');
api.addFiles('tests/jasmine/client/unit/markdown.spec.coffee');
api.addFiles('tests/jasmine/client/unit/markdown.spec.coffee', 'client');
});

@ -1,10 +1,4 @@
describe 'rocketchat:markdown Client + Server', ->
'use strict'
describe 'rocketchat:markdown Client', ->
it 'should exist', ->
obj = RocketChat.Markdown { html: 'test' }
expect(obj).toBeDefined()
it 'should highlight with bold when surrounded by *', ->
output = RocketChat.Markdown { 'msg': '', 'html':'*abc123*' }
expect(output.html).toEqual('<span class="copyonly">*</span><strong>abc123</strong><span class="copyonly">*</span>')
expect(RocketChat.Markdown).toBeDefined()

Loading…
Cancel
Save