OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
API
/
swagger-ui-5.17.14
/
test
/
unit
/
components
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/07/2024 04:33:57 AM
rwxr-xr-x
📄
filter.jsx
1.23 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
highlight-code.jsx
1.65 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
info-wrapper.jsx
1.68 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
live-response.jsx
3.32 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
markdown.jsx
5.43 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
online-validator-badge.jsx
2.3 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
operation-tag.jsx
1.32 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
operation.jsx
900 bytes
08/07/2024 04:33:56 AM
rw-r--r--
📄
operations.jsx
3.32 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
parameter-row.jsx
9.79 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
response-body.jsx
2.23 KB
08/07/2024 04:33:56 AM
rw-r--r--
📄
version-pragma-filter.jsx
1.96 KB
08/07/2024 04:33:56 AM
rw-r--r--
Editing: operation.jsx
Close
import React from "react" import { shallow } from "enzyme" import Operation from "core/components/operation" describe("<Operation/>", function(){ it.skip("blanket tests", function(){ let props = { operation: {get: ()=>{}}, getComponent: ()=> "div", specSelectors: { security(){} }, path: "/one", method: "get", shown: true, showOpId: "", showOpIdPrefix: "", toggleCollapse: jest.fn() } let wrapper = shallow(<Operation {...props}/>) expect(wrapper.find(".opblock").length).toEqual(1) expect(wrapper.find(".opblock-summary-method").text()).toEqual("GET") expect(wrapper.find(".opblock-summary-path").text().trim()).toEqual("/one") expect(wrapper.find("[isOpened]").prop("isOpened")).toEqual(true) wrapper.find(".opblock-summary").simulate("click") expect(props.toggleCollapse).toHaveBeenCalled() }) })