-
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make default mwWikiPath as empty string
- Loading branch information
1 parent
a3c98d0
commit c2f2b87
Showing
22 changed files
with
10 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,6 @@ const parameters = { | |
adminEmail: '[email protected]', | ||
redis: process.env.REDIS, | ||
format: ['nopic'], | ||
mwActionApiPath: 'w/api.php', | ||
mwWikiPath: '/', | ||
} | ||
|
||
await testAllRenders(parameters, async (outFiles) => { | ||
|
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 |
---|---|---|
|
@@ -23,8 +23,6 @@ const parameters = { | |
mwUrl: 'https://en.wikipedia.org', | ||
articleList: 'BMW', | ||
adminEmail: '[email protected]', | ||
mwActionApiPath: 'w/api.php', | ||
mwWikiPath: '/', | ||
} | ||
|
||
await testAllRenders(parameters, async (outFiles) => { | ||
|
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 |
---|---|---|
|
@@ -12,8 +12,6 @@ const parameters = { | |
mwUrl: 'https://en.wikipedia.org', | ||
adminEmail: '[email protected]', | ||
redis: process.env.REDIS, | ||
mwActionApiPath: 'w/api.php', | ||
mwWikiPath: '/', | ||
} | ||
|
||
await testAllRenders({ ...parameters, format: 'nopic', articleList: 'BMW' }, async (outFiles) => { | ||
|
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 |
---|---|---|
|
@@ -12,8 +12,6 @@ const parameters = { | |
adminEmail: '[email protected]', | ||
articleList: 'Read_my_lips:_no_new_taxes', | ||
redis: process.env.REDIS, | ||
mwActionApiPath: 'w/api.php', | ||
mwWikiPath: '/', | ||
} | ||
|
||
await testAllRenders(parameters, async (outFiles) => { | ||
|
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 |
---|---|---|
|
@@ -29,7 +29,6 @@ describe('Downloader class', () => { | |
|
||
beforeAll(async () => { | ||
MediaWiki.base = 'https://en.wikipedia.org' | ||
MediaWiki.wikiPath = '/' | ||
MediaWiki.getCategories = true | ||
|
||
downloader = new Downloader({ uaString: `${config.userAgent} ([email protected])`, speed: 1, reqTimeout: 1000 * 60, webp: true, optimisationCacheUrl: '' }) | ||
|
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 |
---|---|---|
|
@@ -32,7 +32,6 @@ describe('mwApi', () => { | |
await RedisStore.articleDetailXId.flush() | ||
|
||
MediaWiki.base = 'https://en.wikipedia.org' | ||
MediaWiki.wikiPath = '/' | ||
MediaWiki.getCategories = true | ||
downloader = new Downloader({ uaString: `${config.userAgent} ([email protected])`, speed: 1, reqTimeout: 1000 * 60, webp: false, optimisationCacheUrl: '' }) | ||
|
||
|
@@ -103,7 +102,6 @@ describe('mwApi', () => { | |
}) | ||
|
||
test('extracting title from href', () => { | ||
MediaWiki.wikiPath = '/wiki/' | ||
const titleWithWiki = MediaWiki.extractPageTitleFromHref('/wiki/Hades') | ||
// Title with hrefs contaning /wiki | ||
expect(titleWithWiki).toEqual('Hades') | ||
|
@@ -133,7 +131,6 @@ describe('Test blacklisted NSs', () => { | |
await RedisStore.articleDetailXId.flush() | ||
|
||
MediaWiki.base = 'https://id.wikipedia.org' | ||
MediaWiki.wikiPath = '/' | ||
MediaWiki.getCategories = true | ||
|
||
downloader = new Downloader({ uaString: `${config.userAgent} ([email protected])`, speed: 1, reqTimeout: 1000 * 60, webp: false, optimisationCacheUrl: '' }) | ||
|
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