mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Update update.test.ts
This commit is contained in:
parent
a5b8fa12ae
commit
a37973f10e
1 changed files with 6 additions and 3 deletions
|
@ -16,9 +16,12 @@ beforeEach(() => {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('can update SITES.md', () => {
|
it('can update SITES.md', () => {
|
||||||
const stdout = execSync('DOT_SITES_DIR=tests/__data__/output/.sites npm run sites:update', {
|
execSync(
|
||||||
encoding: 'utf8'
|
'DOT_SITES_DIR=tests/__data__/output/.sites SITES_DIR=tests/__data__/input/sites-update/sites npm run sites:update',
|
||||||
})
|
{
|
||||||
|
encoding: 'utf8'
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
expect(content('tests/__data__/output/sites.md')).toEqual(
|
expect(content('tests/__data__/output/sites.md')).toEqual(
|
||||||
content('tests/__data__/expected/_sites.md')
|
content('tests/__data__/expected/_sites.md')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue