From cea7fc2cbbabc3946054a5d90361e9b42361bc08 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Sun, 9 Jan 2022 19:23:57 +0300 Subject: [PATCH] wip --- tests/commands/save-results.test.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tests/commands/save-results.test.js b/tests/commands/save-results.test.js index ff5ce5e6..4e716ce8 100644 --- a/tests/commands/save-results.test.js +++ b/tests/commands/save-results.test.js @@ -19,9 +19,16 @@ it('can save results', () => { }) const lines = logs.split('\n') const parsed = JSON.parse(lines[0]) - expect(parsed).toMatchObject({ - channel: 'AndorraTV.ad', - lang: 'ca', - site: 'andorradifusio.ad' - }) + expect(Object.keys(parsed).sort()).toEqual([ + '_id', + 'category', + 'channel', + 'description', + 'icon', + 'lang', + 'site', + 'start', + 'stop', + 'title' + ]) })