Move `WeightConfig` into the `weights` directory (#797)
Test plan: `yarn test` sufficies for this simple move.
This commit is contained in:
parent
eb065f3634
commit
b632bd6188
|
@ -9,7 +9,7 @@ import BrowserLocalStore from "../browserLocalStore";
|
||||||
|
|
||||||
import {defaultStaticAdapters} from "../adapters/defaultPlugins";
|
import {defaultStaticAdapters} from "../adapters/defaultPlugins";
|
||||||
import {PagerankTable} from "./pagerankTable/Table";
|
import {PagerankTable} from "./pagerankTable/Table";
|
||||||
import {WeightConfig} from "./WeightConfig";
|
import {WeightConfig} from "./weights/WeightConfig";
|
||||||
import {
|
import {
|
||||||
type WeightedTypes,
|
type WeightedTypes,
|
||||||
defaultWeightsForAdapterSet,
|
defaultWeightsForAdapterSet,
|
||||||
|
|
|
@ -13,7 +13,7 @@ import {defaultWeightsForAdapter} from "./weights/weights";
|
||||||
|
|
||||||
import RepositorySelect from "./RepositorySelect";
|
import RepositorySelect from "./RepositorySelect";
|
||||||
import {PagerankTable} from "./pagerankTable/Table";
|
import {PagerankTable} from "./pagerankTable/Table";
|
||||||
import {WeightConfig} from "./WeightConfig";
|
import {WeightConfig} from "./weights/WeightConfig";
|
||||||
import {createApp, LoadingIndicator} from "./App";
|
import {createApp, LoadingIndicator} from "./App";
|
||||||
import {uninitializedState} from "./state";
|
import {uninitializedState} from "./state";
|
||||||
import {_Prefix as GithubPrefix} from "../../plugins/github/nodes";
|
import {_Prefix as GithubPrefix} from "../../plugins/github/nodes";
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import * as NullUtil from "../../util/null";
|
import * as NullUtil from "../../../util/null";
|
||||||
import * as MapUtil from "../../util/map";
|
import * as MapUtil from "../../../util/map";
|
||||||
|
|
||||||
import type {StaticAdapterSet} from "../adapters/adapterSet";
|
import type {StaticAdapterSet} from "../../adapters/adapterSet";
|
||||||
import type {WeightedTypes} from "./weights/weights";
|
import type {WeightedTypes} from "./weights";
|
||||||
import {PluginWeightConfig} from "./weights/PluginWeightConfig";
|
import {PluginWeightConfig} from "./PluginWeightConfig";
|
||||||
import {FALLBACK_NAME} from "../adapters/fallbackAdapter";
|
import {FALLBACK_NAME} from "../../adapters/fallbackAdapter";
|
||||||
|
|
||||||
type Props = {|
|
type Props = {|
|
||||||
+adapters: StaticAdapterSet,
|
+adapters: StaticAdapterSet,
|
|
@ -2,22 +2,19 @@
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import {shallow} from "enzyme";
|
import {shallow} from "enzyme";
|
||||||
import {PluginWeightConfig} from "./weights/PluginWeightConfig";
|
import {PluginWeightConfig} from "./PluginWeightConfig";
|
||||||
import {
|
import {
|
||||||
staticAdapterSet,
|
staticAdapterSet,
|
||||||
inserterNodeType,
|
inserterNodeType,
|
||||||
FactorioStaticAdapter,
|
FactorioStaticAdapter,
|
||||||
} from "../adapters/demoAdapters";
|
} from "../../adapters/demoAdapters";
|
||||||
import {FALLBACK_NAME} from "../adapters/fallbackAdapter";
|
import {FALLBACK_NAME} from "../../adapters/fallbackAdapter";
|
||||||
import {
|
import {defaultWeightsForAdapterSet, defaultWeightsForAdapter} from "./weights";
|
||||||
defaultWeightsForAdapterSet,
|
|
||||||
defaultWeightsForAdapter,
|
|
||||||
} from "./weights/weights";
|
|
||||||
import {WeightConfig} from "./WeightConfig";
|
import {WeightConfig} from "./WeightConfig";
|
||||||
|
|
||||||
require("../testUtil").configureEnzyme();
|
require("../../testUtil").configureEnzyme();
|
||||||
|
|
||||||
describe("app/credExplorer/WeightConfig", () => {
|
describe("app/credExplorer/weights/WeightConfig", () => {
|
||||||
describe("WeightConfig", () => {
|
describe("WeightConfig", () => {
|
||||||
function example() {
|
function example() {
|
||||||
const onChange = jest.fn();
|
const onChange = jest.fn();
|
Loading…
Reference in New Issue