From dc986a9d099c671ac08ed7d8125d2e0317d6b990 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Wed, 8 Feb 2023 03:54:57 +0300 Subject: [PATCH] Update update.test.js --- tests/commands/guides/update.test.js | 34 ---------------------------- 1 file changed, 34 deletions(-) diff --git a/tests/commands/guides/update.test.js b/tests/commands/guides/update.test.js index 0f335c01..61aba01c 100644 --- a/tests/commands/guides/update.test.js +++ b/tests/commands/guides/update.test.js @@ -17,32 +17,6 @@ it('can generate /guides', () => { { encoding: 'utf8' } ) - expect(stdout).toBe( - ` -> guides:update -> NODE_OPTIONS=--max-old-space-size=5120 node scripts/commands/guides/update.js - -starting... -loading data/channels.json... -loading database/programs.db... -found 6 programs -creating tests/__data__/output/guides/da/allente.se.xml... -creating tests/__data__/output/guides/da/allente.se.xml.gz... -creating tests/__data__/output/guides/da/allente.se.json... -creating tests/__data__/output/guides/en/virginmedia.com.xml... -creating tests/__data__/output/guides/en/virginmedia.com.xml.gz... -creating tests/__data__/output/guides/en/virginmedia.com.json... -creating tests/__data__/output/guides/fr/sky.com.xml... -creating tests/__data__/output/guides/fr/sky.com.xml.gz... -creating tests/__data__/output/guides/fr/sky.com.json... -creating tests/__data__/output/guides/en/sky.com.xml... -creating tests/__data__/output/guides/en/sky.com.xml.gz... -creating tests/__data__/output/guides/en/sky.com.json... -creating tests/__data__/output/logs/guides/update.log... -finished -` - ) - const uncompressed = glob .sync('tests/__data__/expected/guides/**/*.xml') .map(f => f.replace('tests/__data__/expected/', '')) @@ -59,14 +33,6 @@ finished expect(content(`output/${filepath}`), filepath).toBe(content(`expected/${filepath}`)) }) - const json = glob - .sync('tests/__data__/expected/guides/**/*.json') - .map(f => f.replace('tests/__data__/expected/', '')) - - json.forEach(filepath => { - expect(content(`output/${filepath}`), filepath).toBe(content(`expected/${filepath}`)) - }) - expect(content('output/logs/guides/update.log')).toEqual( content('expected/logs/guides/update.log') )