From 0afc0a864adeff5f1699660cee9ab58aeee06fa9 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 6 Oct 2022 14:12:53 +0300 Subject: [PATCH] Update update.test.js --- tests/commands/guides/update.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/commands/guides/update.test.js b/tests/commands/guides/update.test.js index f85848f9..7b1049aa 100644 --- a/tests/commands/guides/update.test.js +++ b/tests/commands/guides/update.test.js @@ -28,6 +28,14 @@ it('can generate /guides', () => { compressed.forEach(filepath => { 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}`)) + }) }) it('will terminate process if programs not found', () => {