You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
360 B
JavaScript
11 lines
360 B
JavaScript
10 years ago
|
define(['lib/markdown'], function (markdown) {
|
||
|
describe('markdown', function () {
|
||
|
it('→ converts to html', function () {
|
||
|
var expected = '<p>some <em>example</em> ' +
|
||
|
'<a href="http://example.com">yo</a></p>\n';
|
||
|
var actual = markdown('some *example* [yo](http://example.com)');
|
||
|
expect(actual).toBe(expected);
|
||
|
});
|
||
|
});
|
||
|
});
|