diff --git a/src/Common/DatabaseAccountUtility.ts b/src/Common/DatabaseAccountUtility.ts
index 4c7460e81..0d4d1d9a6 100644
--- a/src/Common/DatabaseAccountUtility.ts
+++ b/src/Common/DatabaseAccountUtility.ts
@@ -27,6 +27,6 @@ export function getWorkloadType(): WorkloadType {
return workloadType;
}
-export function isMaterializedViewsEnabled() {
+export function isMaterializedViewsEnabled(): boolean {
return userContext.apiType === "SQL" && userContext.databaseAccount?.properties?.enableMaterializedViews;
}
diff --git a/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.test.tsx b/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.test.tsx
index 0e87c61de..f075eb828 100644
--- a/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.test.tsx
+++ b/src/Explorer/Panes/AddCollectionPanel/AddCollectionPanel.test.tsx
@@ -1,6 +1,6 @@
import { shallow } from "enzyme";
import React from "react";
-import Explorer from "../Explorer";
+import Explorer from "../../Explorer";
import { AddCollectionPanel } from "./AddCollectionPanel";
const props = {
diff --git a/src/Explorer/Panes/AddMaterializedViewPanel/AddMaterializedViewPanel.test.tsx b/src/Explorer/Panes/AddMaterializedViewPanel/AddMaterializedViewPanel.test.tsx
index 539e750aa..3387b227a 100644
--- a/src/Explorer/Panes/AddMaterializedViewPanel/AddMaterializedViewPanel.test.tsx
+++ b/src/Explorer/Panes/AddMaterializedViewPanel/AddMaterializedViewPanel.test.tsx
@@ -1,22 +1,20 @@
-import { shallow } from "enzyme";
+import { shallow, ShallowWrapper } from "enzyme";
import Explorer from "Explorer/Explorer";
import { AddMaterializedViewPanel, AddMaterializedViewPanelProps } from "Explorer/Panes/AddMaterializedViewPanel/AddMaterializedViewPanel";
-import React from "react";
+import React, { Component } from "react";
const props: AddMaterializedViewPanelProps = {
- explorer: new Explorer(),
- sourceContainer: new Collection()
+ explorer: new Explorer()
};
describe("AddMaterializedViewPanel", () => {
- const wrapper = shallow();
-
- it("Render default properly", () => {
+ it("render default panel", () => {
+ const wrapper: ShallowWrapper = shallow();
expect(wrapper).toMatchSnapshot();
});
it("should render form", () => {
-
+ const wrapper: ShallowWrapper = shallow();
const form = wrapper.find("form").first();
expect(form).toBeDefined();
});
diff --git a/src/Explorer/Panes/AddMaterializedViewPanel/__snapshots__/AddMaterializedViewPanel.test.tsx.snap b/src/Explorer/Panes/AddMaterializedViewPanel/__snapshots__/AddMaterializedViewPanel.test.tsx.snap
index cf095f354..18bf52a98 100644
--- a/src/Explorer/Panes/AddMaterializedViewPanel/__snapshots__/AddMaterializedViewPanel.test.tsx.snap
+++ b/src/Explorer/Panes/AddMaterializedViewPanel/__snapshots__/AddMaterializedViewPanel.test.tsx.snap
@@ -1,195 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`AddMaterializedViewPanel Render default properly 1`] = `
-
-`;
-
-exports[`AddMaterializedViewpanel should render Default properly 1`] = `
+exports[`AddMaterializedViewPanel render default panel 1`] = `