From 3ecdab8583e034098f265de1d3459927731719bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 7 Aug 2020 11:27:49 +0200 Subject: [PATCH] fix: tests --- .../__tests__/__snapshots__/view-component-test.jsx.snap | 3 +++ .../feature/__tests__/feature-list-item-component-test.jsx | 2 ++ .../src/component/feature/__tests__/view-component-test.jsx | 1 + 3 files changed, 6 insertions(+) diff --git a/frontend/src/component/feature/__tests__/__snapshots__/view-component-test.jsx.snap b/frontend/src/component/feature/__tests__/__snapshots__/view-component-test.jsx.snap index 75e93cb14f..2991b5624c 100644 --- a/frontend/src/component/feature/__tests__/__snapshots__/view-component-test.jsx.snap +++ b/frontend/src/component/feature/__tests__/__snapshots__/view-component-test.jsx.snap @@ -114,6 +114,7 @@ exports[`renders correctly with one feature 1`] = ` Mark toggle as Stale @@ -190,6 +191,7 @@ exports[`renders correctly with one feature 1`] = ` "description": "another's description", "enabled": false, "name": "Another", + "stale": false, "strategies": Array [ Object { "name": "gradualRolloutRandom", @@ -208,6 +210,7 @@ exports[`renders correctly with one feature 1`] = ` "description": "another's description", "enabled": false, "name": "Another", + "stale": false, "strategies": Array [ Object { "name": "gradualRolloutRandom", diff --git a/frontend/src/component/feature/__tests__/feature-list-item-component-test.jsx b/frontend/src/component/feature/__tests__/feature-list-item-component-test.jsx index b403f63695..f1fbc37825 100644 --- a/frontend/src/component/feature/__tests__/feature-list-item-component-test.jsx +++ b/frontend/src/component/feature/__tests__/feature-list-item-component-test.jsx @@ -12,6 +12,7 @@ test('renders correctly with one feature', () => { name: 'Another', description: "another's description", enabled: false, + stale: false, strategies: [ { name: 'gradualRolloutRandom', @@ -46,6 +47,7 @@ test('renders correctly with one feature without permission', () => { name: 'Another', description: "another's description", enabled: false, + stale: false, strategies: [ { name: 'gradualRolloutRandom', diff --git a/frontend/src/component/feature/__tests__/view-component-test.jsx b/frontend/src/component/feature/__tests__/view-component-test.jsx index a2a97e1a4c..bdc2c1d745 100644 --- a/frontend/src/component/feature/__tests__/view-component-test.jsx +++ b/frontend/src/component/feature/__tests__/view-component-test.jsx @@ -17,6 +17,7 @@ test('renders correctly with one feature', () => { name: 'Another', description: "another's description", enabled: false, + stale: false, type: 'release', strategies: [ {