Skip to content
Snippets Groups Projects
Commit 2b16768e authored by George Secrieru's avatar George Secrieru
Browse files

Adding explicit dependencies and first tests for RocketChat.Markdown

parent ef5435bc
No related branches found
No related tags found
No related merge requests found
......@@ -8,14 +8,19 @@ Package.describe({
Package.onUse(function(api) {
api.versionsFrom('1.0');
api.use([
'coffeescript',
'rocketchat:lib@0.0.1'
]);
api.use('coffeescript');
api.use('underscore');
api.use('underscorestring:underscore.string');
api.use('rocketchat:lib@0.0.1');
api.addFiles('markdown.coffee', ['server','client']);
api.addFiles('markdown.coffee');
});
Package.onTest(function(api) {
api.use('coffeescript');
api.use('sanjo:jasmine@0.20.2');
api.use('rocketchat:lib');
api.use('rocketchat:markdown');
api.addFiles('tests/jasmine/client/unit/markdown.spec.coffee', 'client');
});
describe 'rocketchat:markdown Client + Server', ->
'use strict'
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>')
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment