14 lines
477 B
JavaScript
14 lines
477 B
JavaScript
describe("@todo tag", function() {
|
|
var docSet = jasmine.getDocSetFromFile('test/fixtures/todotag.js'),
|
|
doc = docSet.getByLongname('x')[0];
|
|
|
|
it("adds the entries into a 'todo' array on the doclet", function() {
|
|
expect(doc.todo).toBeDefined();
|
|
expect(Array.isArray(doc.todo)).toBeTruthy();
|
|
expect(doc.todo.length).toBe(2);
|
|
|
|
expect(doc.todo).toContain('something');
|
|
expect(doc.todo).toContain('something else');
|
|
});
|
|
});
|