From a1442497d4ff62198a7eb165fb8b3999441dd755 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" <70410625+michael-s-molina@users.noreply.github.com> Date: Thu, 1 Apr 2021 15:42:14 -0300 Subject: [PATCH] test: Fixes PropertiesModal_spec (#13548) --- .../javascripts/dashboard/components/PropertiesModal_spec.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset-frontend/spec/javascripts/dashboard/components/PropertiesModal_spec.jsx b/superset-frontend/spec/javascripts/dashboard/components/PropertiesModal_spec.jsx index 92f78876032..5387c5e9402 100644 --- a/superset-frontend/spec/javascripts/dashboard/components/PropertiesModal_spec.jsx +++ b/superset-frontend/spec/javascripts/dashboard/components/PropertiesModal_spec.jsx @@ -46,7 +46,7 @@ const dashboardResult = { fetchMock.restore(); fetchMock.get('glob:*/api/v1/dashboard/related/owners?*', { - result: {}, + result: [], }); fetchMock.get('glob:*/api/v1/dashboard/*', { @@ -255,6 +255,7 @@ describe('PropertiesModal', () => { slug: '/new', json_metadata: '{"color_scheme":"SUPERSET_DEFAULT"}', owners: [], + roles: [], }, }, }); @@ -293,6 +294,7 @@ describe('PropertiesModal', () => { slug: '/new', json_metadata: '{"color_scheme":"SUPERSET_DEFAULT"}', owners: [], + roles: [], }, }, });