From 261dda50d69a5eae0d394eee67ea10f3b4c2b198 Mon Sep 17 00:00:00 2001 From: "Michael S. Molina" Date: Wed, 10 Mar 2021 11:14:06 -0300 Subject: [PATCH] test: Fixes PropertiesModal_spec --- .../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 92f78876032be..5387c5e9402a3 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: [], }, }, });