jsdoc/test/specs/jsdoc/doclet.js
2012-09-09 07:18:13 -07:00

23 lines
1001 B
JavaScript

/*global describe: true, env: true, expect: true, it: true, jasmine: true, xit: 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";
// TODO: reenable the test and make it pass, or remove the test
xit('does not mangle Markdown in a description that does not use leading asterisks', function() {
expect(test1.description.indexOf(expectStrong)).toBeGreaterThan(-1);
expect(test1.description.indexOf(expectList)).toBeGreaterThan(-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);
});
});