Update update-api.js

This commit is contained in:
Aleksandr Statciuk 2022-01-19 22:08:45 +03:00
parent 9e45139883
commit 3b4db94206
3 changed files with 16 additions and 11 deletions

View file

@ -32,12 +32,12 @@ it('can generate channels.json', () => {
expect(output).toBe(expected)
})
// it('can generate programs.json', () => {
// const output = content('tests/__data__/output/api/programs.json')
// const expected = content('tests/__data__/expected/api/programs.json')
it('can generate programs.json', () => {
const output = content('tests/__data__/output/api/programs.json')
const expected = content('tests/__data__/expected/api/programs.json')
// expect(output).toBe(expected)
// })
expect(output).toBe(expected)
})
function content(filepath) {
const data = fs.readFileSync(path.resolve(filepath), {