mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
21 lines
399 B
JavaScript
21 lines
399 B
JavaScript
'use strict';
|
|
|
|
var test = require('tap').test,
|
|
parse = require('../../lib/parsers/javascript'),
|
|
github = require('../../lib/github');
|
|
|
|
function toComment(fn, filename) {
|
|
return parse({
|
|
file: filename,
|
|
source: fn instanceof Function ? '(' + fn.toString() + ')' : fn
|
|
})[0];
|
|
}
|
|
|
|
function evaluate(fn) {
|
|
return toComment(fn, 'input.js');
|
|
}
|
|
|
|
test('github', function (t) {
|
|
t.end();
|
|
});
|