classwithoutname.js 556 B

12345678910111213141516
  1. 'use strict';
  2. describe('class without a name', function() {
  3. var docSet = jasmine.getDocSetFromFile('test/fixtures/classwithoutname.js').doclets
  4. .filter(function(doclet) {
  5. return doclet.name === '';
  6. });
  7. it('When the doclet for a class has an empty name, it should also have an empty longname', function() {
  8. expect(docSet).toBeDefined();
  9. expect(docSet.length).toBe(1);
  10. expect(docSet[0].description).toBe('Create an instance of MyClass.');
  11. expect(docSet[0].longname).toBe('');
  12. });
  13. });