mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
17 lines
659 B
JavaScript
17 lines
659 B
JavaScript
/*global describe: true, env: true, expect: true, it: true, jasmine: true */
|
|
describe("jsdoc/doclet", function() {
|
|
// TODO: more tests
|
|
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/doclet.js'),
|
|
test1 = docSet.getByLongname('test1')[0],
|
|
test2 = docSet.getByLongname('test2')[0];
|
|
|
|
var expectStrong = "**Strong** is strong";
|
|
var expectList = "* List item 1";
|
|
|
|
it('does not mangle Markdown in a description that uses leading asterisks', function() {
|
|
expect(test2.description.indexOf(expectStrong)).toBeGreaterThan(-1);
|
|
expect(test2.description.indexOf(expectList)).toBeGreaterThan(-1);
|
|
});
|
|
});
|