mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-04-03 00:18:21 +01:00
14 lines
454 B
TypeScript
14 lines
454 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 initialInput="Write a query to return all records in this table" explorer={new Explorer()} />
|
|
);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|