mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-27 21:01:57 +00:00
* Sample Prompts and ComboBox implementation * Adding DeletePopup and SamplePrompts * Implementation of Delete/Copy code buttons * Adjusted changes based on the comments for Modal * Reverded implementation of inline prompt * Updated function * Replacing const to function * Unused icons deleted * Comments removed * Additional styling based on designs * Test snapshots * Implementation of popup for copying code * Tests updated/added * Background color changed * Resolving lint issue * CopyPopup snapshot updated * Merged with master * Implementations fixed based on comments * Test Snapshots updated * Query copilot updated * Resolving minor bug with Delete popup --------- Co-authored-by: Predrag Klepic <v-prklepic@microsoft.com>
12 lines
417 B
TypeScript
12 lines
417 B
TypeScript
import { shallow } from "enzyme";
|
|
import React from "react";
|
|
import { any } from "underscore";
|
|
import { DeletePopup } from "./DeletePopup";
|
|
|
|
describe("Delete Popup snapshot test", () => {
|
|
it("should render when showDeletePopup is true", () => {
|
|
const wrapper = shallow(<DeletePopup showDeletePopup={true} setShowDeletePopup={() => any} setQuery={() => any} />);
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|