Skip to content

Commit

Permalink
Merge pull request #2056 from openzim/fix-ci
Browse files Browse the repository at this point in the history
Update test, Zürich now redirects to Zurich
  • Loading branch information
audiodude authored Jul 7, 2024
2 parents 4cfe89b + 8c3a2c9 commit 372f0c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/downloader.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ describe('Downloader class', () => {
})

test("getArticleDetailsIds Scraped 'London', 'United_Kingdom', 'Paris', 'Zürich', 'THISARTICLEDOESNTEXIST' successfully", async () => {
const _articleDetailsRet = await downloader.getArticleDetailsIds(['London', 'United_Kingdom', 'Paris', 'Zürich', 'THISARTICLEDOESNTEXIST', 'Category:Container_categories'])
const _articleDetailsRet = await downloader.getArticleDetailsIds(['London', 'United_Kingdom', 'Paris', 'Zurich', 'THISARTICLEDOESNTEXIST', 'Category:Container_categories'])
const articleDetailsRet = mwRetToArticleDetail(_articleDetailsRet)
RedisStore.articleDetailXId.setMany(articleDetailsRet)
const { London, Paris, Zürich, United_Kingdom, THISARTICLEDOESNTEXIST } = articleDetailsRet
const { London, Paris, Zurich, United_Kingdom, THISARTICLEDOESNTEXIST } = articleDetailsRet
expect(London).toBeDefined()
expect(United_Kingdom).toBeDefined()
expect(Paris).toBeDefined()
expect(Zürich).toBeDefined()
expect(Zurich).toBeDefined()

expect(THISARTICLEDOESNTEXIST.missing).toBe(true)
})
Expand Down

0 comments on commit 372f0c7

Please sign in to comment.