mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-26 12:21:23 +00:00
* Sample implementation for saving states * Maintaining Query Copilot state * Fixing failed PR checks * Additional changes based on checks * snapshots updated * Changes based on merging previous PR * test mock changed * Fixing minor bug for close button * Destruct of queryCopilotState * passing only function in Tabs component * Maintaining copilot state with zustand store * additional test changes * test snapshot updated --------- Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
12 lines
377 B
TypeScript
12 lines
377 B
TypeScript
import { shallow } from "enzyme";
|
|
import React from "react";
|
|
import Explorer from "../Explorer";
|
|
import { QueryCopilotTab } from "./QueryCopilotTab";
|
|
|
|
describe("Query copilot tab snapshot test", () => {
|
|
it("should render with initial input", () => {
|
|
const wrapper = shallow(<QueryCopilotTab explorer={new Explorer()} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|