CEC-2970: Multiple Superset Dashboards (#229)

Co-authored-by: Alexander Andrews <aandrews@fiskerinc.com>
This commit is contained in:
Alexander Andrews
2022-11-02 14:37:08 -04:00
committed by GitHub
parent 843fddd0b7
commit 2d298368c5
9 changed files with 4406 additions and 501 deletions

View File

@@ -0,0 +1,15 @@
import superset from "./superset"
describe("Superset tests", () => {
it("Outdated API doesn't cause problems", async () => {
process.env.REACT_APP_SUPERSET_KEYS_LIST = "11111100-0000-1111-1111-000000000000"
global.fetch = jest.fn(() => {
return { status: 404 }
}
);
const res = await superset.getEmbeddedDashboards()
expect(res).toHaveLength(1)
expect(res[0].embedded_id).toBe("11111100-0000-1111-1111-000000000000")
})
})