mirror of
https://github.com/eggjs/egg.git
synced 2024-12-04 07:14:30 +00:00
31 lines
723 B
JavaScript
31 lines
723 B
JavaScript
'use strict';
|
|
|
|
const path = require('path');
|
|
const findlinks = require('findlinks');
|
|
const assert = require('assert');
|
|
const runscript = require('runscript');
|
|
const utils = require('./utils');
|
|
|
|
describe.skip('test/doc.test.js', () => {
|
|
|
|
if (process.platform === 'win32') return;
|
|
|
|
let app;
|
|
before(function* () {
|
|
yield runscript('doctools build', { cwd: path.dirname(__dirname) });
|
|
});
|
|
before(function* () {
|
|
app = utils.cluster({
|
|
baseDir: 'apps/docapp',
|
|
});
|
|
app.coverage(false);
|
|
yield app.ready();
|
|
});
|
|
after(() => app.close());
|
|
|
|
it('should no broken url', function* () {
|
|
const result = yield findlinks({ src: app.url, logger: console });
|
|
assert(result.fail === 0);
|
|
});
|
|
});
|