UNPKG

jsdoc-parser-extended

Version:
18 lines (16 loc) 555 B
var TestUtils = require('../../TestUtils'); var K = require('../../constants'); var assert = require('chai').assert; describe('CJS::Parser - @type support', function() { it('respects the @type specified even if no context was generated', function() { var docs = TestUtils.parseInline(function() {; // /** // * @module flushPromiseQueue // * @type {Function} // */ // module.exports = require('./setupRSVP').flush; }); assert.equal(docs.length, 1); assert.equal(docs[0].type, K.TYPE_FUNCTION); }); });