mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-22 18:32:00 +00:00
23 lines
597 B
TypeScript
23 lines
597 B
TypeScript
import { mount, ReactWrapper } from "enzyme";
|
|
import React from "react";
|
|
import { ThroughputInput } from "./ThroughputInput";
|
|
const props = {
|
|
isDatabase: false,
|
|
showFreeTierExceedThroughputTooltip: true,
|
|
isSharded: false,
|
|
setThroughputValue: () => jest.fn(),
|
|
setIsAutoscale: () => jest.fn(),
|
|
onCostAcknowledgeChange: () => jest.fn(),
|
|
};
|
|
describe("ThroughputInput Pane", () => {
|
|
let wrapper: ReactWrapper;
|
|
|
|
beforeEach(() => {
|
|
wrapper = mount(<ThroughputInput {...props} />);
|
|
});
|
|
|
|
it("should render Default properly", () => {
|
|
expect(wrapper).toMatchSnapshot();
|
|
});
|
|
});
|