Skip to content

Commit

Permalink
Fixed tests to fit sanitizing rules for Description.
Browse files Browse the repository at this point in the history
lint fixes
  • Loading branch information
pavel-karatsiuba committed Mar 22, 2023
1 parent 0f3c6c5 commit ebafe88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/e2e/vikidia.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ describe('vikidia', () => {
outputDirectory: testId,
redis: process.env.REDIS,
articleList: 'Alaska',
customZimDescription: 'Alasks article',
}

test('right scrapping from vikidia.org', async () => {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
extractArticleList,
mkdirPromise,
writeFilePromise,
validateMetadata,
validateMetadata,
} from '../../src/util/index.js'
import { testHtmlRewritingE2e } from '../util.js'
import axios from 'axios'
Expand Down Expand Up @@ -413,7 +413,7 @@ describe('Utils', () => {
await expect(extractArticleList('http://valid-wrong-url.com/')).rejects.toThrow('Failed to read articleList from URL: http://valid-wrong-url.com/')
})
})

describe('metaData', () => {
test('validate empty string', () => {
const metaData = {
Expand Down

0 comments on commit ebafe88

Please sign in to comment.