Fix basePath & update route URLs

This commit is contained in:
John Hildenbiddle 2020-10-25 23:08:46 -05:00
parent f0a8d69eb8
commit 5ec225687b

View File

@ -99,7 +99,7 @@ describe(`Example Tests`, function() {
await page.evaluate(() => {
window.$docsify = {
el: '#app',
basePath: '/docs',
basePath: '/docs/',
themeColor: 'red',
};
});
@ -182,12 +182,12 @@ describe(`Example Tests`, function() {
`,
},
routes: {
'/test.md': `
'test.md': `
# Test Page
This is a custom route.
`,
'/data-test-scripturls.js': `
'data-test-scripturls.js': `
document.body.setAttribute('data-test-scripturls', 'pass');
`,
},
@ -196,7 +196,7 @@ describe(`Example Tests`, function() {
`,
scriptURLs: [
// docsifyInit() route
'/data-test-scripturls.js',
'data-test-scripturls.js',
// Server route
'/lib/plugins/search.min.js',
],