We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8362ed0 commit f0a8d69Copy full SHA for f0a8d69
test/helpers/docsify-init.js
@@ -78,7 +78,9 @@ async function docsifyInit(options = {}) {
78
};
79
80
const updateBasePath = config => {
81
- config.basePath = new URL(config.basePath, TEST_HOST).href;
+ if (config.basePath) {
82
+ config.basePath = new URL(config.basePath, TEST_HOST).href;
83
+ }
84
85
86
// Config as function
@@ -128,7 +130,7 @@ async function docsifyInit(options = {}) {
128
130
.filter(([url, responseText]) => url && responseText)
129
131
.map(([url, responseText]) => [
132
// Convert relative to absolute URL
- new URL(url, settings.config.basePath).href,
133
+ new URL(url, settings.config.basePath || TEST_HOST).href,
134
// Strip indentation from responseText
135
stripIndent`${responseText}`,
136
])
0 commit comments