-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return to forward slash mandatory before paths to support root wikis
- Loading branch information
Showing
9 changed files
with
28 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,7 @@ describe('Checking Mediawiki capabilities', () => { | |
test('test capabilities of minecraft.wiki with correct VisualEditor receipt', async () => { | ||
MediaWiki.base = 'https://minecraft.wiki' | ||
MediaWiki.wikiPath = '/' | ||
MediaWiki.actionApiPath = 'api.php' | ||
MediaWiki.actionApiPath = '/api.php' | ||
const downloader = new Downloader({ uaString: `${config.userAgent} ([email protected])`, speed: 1, reqTimeout: 1000 * 60, webp: true, optimisationCacheUrl: '' }) | ||
|
||
expect(await MediaWiki.hasWikimediaDesktopApi(downloader)).toBe(false) | ||
|
@@ -58,7 +58,7 @@ describe('Checking Mediawiki capabilities', () => { | |
test('test capabilities of pokemon.fandom.com with correct VisualEditor receipt', async () => { | ||
MediaWiki.base = 'https://pokemon.fandom.com/' | ||
MediaWiki.wikiPath = '/' | ||
MediaWiki.actionApiPath = 'api.php' | ||
MediaWiki.actionApiPath = '/api.php' | ||
const downloader = new Downloader({ uaString: `${config.userAgent} ([email protected])`, speed: 1, reqTimeout: 1000 * 60, webp: true, optimisationCacheUrl: '' }) | ||
|
||
expect(await MediaWiki.hasWikimediaDesktopApi(downloader)).toBe(false) | ||
|
@@ -80,7 +80,7 @@ describe('Checking Mediawiki capabilities', () => { | |
test('test capabilities of pokemon.fandom.com with RestApi receipt', async () => { | ||
MediaWiki.base = 'https://pokemon.fandom.com/' | ||
MediaWiki.wikiPath = '/' | ||
MediaWiki.restApiPath = 'rest.php' | ||
MediaWiki.restApiPath = '/rest.php' | ||
const downloader = new Downloader({ uaString: `${config.userAgent} ([email protected])`, speed: 1, reqTimeout: 1000 * 60, webp: true, optimisationCacheUrl: '' }) | ||
|
||
expect(await MediaWiki.hasWikimediaDesktopApi(downloader)).toBe(false) | ||
|