Skip to content

Commit 5ec2256

Browse files
committed
Fix basePath & update route URLs
1 parent f0a8d69 commit 5ec2256

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/e2e/example.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ describe(`Example Tests`, function() {
9999
await page.evaluate(() => {
100100
window.$docsify = {
101101
el: '#app',
102-
basePath: '/docs',
102+
basePath: '/docs/',
103103
themeColor: 'red',
104104
};
105105
});
@@ -182,12 +182,12 @@ describe(`Example Tests`, function() {
182182
`,
183183
},
184184
routes: {
185-
'/test.md': `
185+
'test.md': `
186186
# Test Page
187187
188188
This is a custom route.
189189
`,
190-
'/data-test-scripturls.js': `
190+
'data-test-scripturls.js': `
191191
document.body.setAttribute('data-test-scripturls', 'pass');
192192
`,
193193
},
@@ -196,7 +196,7 @@ describe(`Example Tests`, function() {
196196
`,
197197
scriptURLs: [
198198
// docsifyInit() route
199-
'/data-test-scripturls.js',
199+
'data-test-scripturls.js',
200200
// Server route
201201
'/lib/plugins/search.min.js',
202202
],

0 commit comments

Comments
 (0)