Update update-guides.test.js

This commit is contained in:
Aleksandr Statciuk 2022-01-31 05:32:21 +03:00
parent 34eef8f525
commit b45d914727
4 changed files with 14 additions and 7 deletions

View file

@ -41,11 +41,16 @@ it('can create guides.log', () => {
expect(output).toBe(expected)
})
it('can create errors.log', () => {
const output = content('tests/__data__/output/logs/errors.log')
const expected = content('tests/__data__/expected/logs/errors.log')
it('can log errors', () => {
const output1 = content('tests/__data__/output/logs/errors/ru/yandex.ru.log')
const expected1 = content('tests/__data__/expected/logs/errors/ru/yandex.ru.log')
expect(output).toBe(expected)
expect(output1).toBe(expected1)
const output2 = content('tests/__data__/output/logs/errors/us/directv.com.log')
const expected2 = content('tests/__data__/expected/logs/errors/us/directv.com.log')
expect(output2).toBe(expected2)
})
function content(filepath) {