mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-25 14:26:29 +00:00
Also: * Fixes many issues in the default theme * Moves the default theme from default-theme to default_theme * Creates a new, robust linker infrastructure that will support bare links * Replaces slugg with github-slugger * Outputs unknown types as Any. Fixes #451
29 lines
492 B
JavaScript
29 lines
492 B
JavaScript
var test = require('tap').test;
|
|
var remark = require('remark');
|
|
var theme = require('..');
|
|
|
|
test('main', function (t) {
|
|
var comments = [
|
|
{
|
|
path: [],
|
|
context: {},
|
|
description: remark.parse('test'),
|
|
members: {
|
|
static: [],
|
|
instance: []
|
|
},
|
|
returns: [{
|
|
type: {
|
|
type: 'NameExpression',
|
|
name: 'Foo'
|
|
}
|
|
}]
|
|
}
|
|
];
|
|
|
|
theme(comments, {}, function (err) {
|
|
t.ifError(err);
|
|
t.done();
|
|
});
|
|
});
|