var assert = require('assert'),
    path = require('path'),
    worker = require('../../../ci/worker'),
    testResource = require('../../test_resource'),
    generateApiguide = worker.generateApiguide;

describe('apiguide', function () {
    it('Generate api guide docs.', function (done) {
        generateApiguide({
            src: path.resolve(__dirname, '../../../ci/worker/*.js'),
            destDir: testResource.resolveWorkFile('work-apiguide')
        }, function (err) {
            assert.ifError(err);
            done();
        });
    });
});