From 5ec225687b1acbd7dbccff58a89f63e570424b42 Mon Sep 17 00:00:00 2001 From: John Hildenbiddle Date: Sun, 25 Oct 2020 23:08:46 -0500 Subject: [PATCH] Fix basePath & update route URLs --- test/e2e/example.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/e2e/example.test.js b/test/e2e/example.test.js index 2b8e027d..ae93eb84 100644 --- a/test/e2e/example.test.js +++ b/test/e2e/example.test.js @@ -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', ],