Refactor deep-linking, in the process extracted out OperationsTag (#4349)

* add configsActions.loaded hook

* add OperationTag to hold Operations

* fix test for operations

* refactor deep-linking plugin
This commit is contained in:
Josh Ponelat
2018-06-01 22:19:44 +02:00
committed by kyle
parent 5ea2150ae7
commit 90157c1a40
12 changed files with 412 additions and 208 deletions

View File

@@ -1,6 +1,6 @@
/* eslint-env mocha */
import React from "react"
import expect, { createSpy } from "expect"
import expect from "expect"
import { render } from "enzyme"
import { fromJS } from "immutable"
import DeepLink from "components/deep-link"
@@ -10,7 +10,8 @@ import {Collapse} from "components/layout-utils"
const components = {
Collapse,
DeepLink,
OperationContainer: ({ path, method }) => <span className="mocked-op" id={`${path}-${method}`} />
OperationContainer: ({ path, method }) => <span className="mocked-op" id={`${path}-${method}`} />,
OperationTag: "div",
}
describe("<Operations/>", function(){