@sasjs/cli
Version:
Command line interface for SASjs
28 lines (27 loc) • 1.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var getDocConfig_1 = require("../internal/getDocConfig");
var UNCErrorMessage = "UNC paths are not supported.\nPlease map to a network drive, or migrate the project to an existing path (with a drive letter).";
describe('getDocConfig', function () {
var sasjsConstants;
beforeAll(function () {
;
(sasjsConstants = process.sasjsConstants);
process.sasjsConstants = {};
});
afterAll(function () {
process.sasjsConstants = sasjsConstants;
});
it('should throw for having UNC path picked up from target', function () {
var target = {
docConfig: { doxyContent: { path: '//server1/unc/path' } }
};
expect(function () { return (0, getDocConfig_1.getDocConfig)(target); }).toThrowError(UNCErrorMessage);
});
it('should throw for having UNC path picked up from config', function () {
var config = {
docConfig: { doxyContent: { path: '//server1/unc/path' } }
};
expect(function () { return (0, getDocConfig_1.getDocConfig)(undefined, config); }).toThrowError(UNCErrorMessage);
});
});