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 {PagerankTable} from "./pagerankTable/Table";
|
||||
import {WeightConfig} from "./WeightConfig";
|
||||
import {WeightConfig} from "./weights/WeightConfig";
|
||||
import {
|
||||
type WeightedTypes,
|
||||
defaultWeightsForAdapterSet,
|
||||
|
|
|
@ -13,7 +13,7 @@ import {defaultWeightsForAdapter} from "./weights/weights";
|
|||
|
||||
import RepositorySelect from "./RepositorySelect";
|
||||
import {PagerankTable} from "./pagerankTable/Table";
|
||||
import {WeightConfig} from "./WeightConfig";
|
||||
import {WeightConfig} from "./weights/WeightConfig";
|
||||
import {createApp, LoadingIndicator} from "./App";
|
||||
import {uninitializedState} from "./state";
|
||||
import {_Prefix as GithubPrefix} from "../../plugins/github/nodes";
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
// @flow
|
||||
|
||||
import React from "react";
|
||||
import * as NullUtil from "../../util/null";
|
||||
import * as MapUtil from "../../util/map";
|
||||
import * as NullUtil from "../../../util/null";
|
||||
import * as MapUtil from "../../../util/map";
|
||||
|
||||
import type {StaticAdapterSet} from "../adapters/adapterSet";
|
||||
import type {WeightedTypes} from "./weights/weights";
|
||||
import {PluginWeightConfig} from "./weights/PluginWeightConfig";
|
||||
import {FALLBACK_NAME} from "../adapters/fallbackAdapter";
|
||||
import type {StaticAdapterSet} from "../../adapters/adapterSet";
|
||||
import type {WeightedTypes} from "./weights";
|
||||
import {PluginWeightConfig} from "./PluginWeightConfig";
|
||||
import {FALLBACK_NAME} from "../../adapters/fallbackAdapter";
|
||||
|
||||
type Props = {|
|
||||
+adapters: StaticAdapterSet,
|
|
@ -2,22 +2,19 @@
|
|||
|
||||
import React from "react";
|
||||
import {shallow} from "enzyme";
|
||||
import {PluginWeightConfig} from "./weights/PluginWeightConfig";
|
||||
import {PluginWeightConfig} from "./PluginWeightConfig";
|
||||
import {
|
||||
staticAdapterSet,
|
||||
inserterNodeType,
|
||||
FactorioStaticAdapter,
|
||||
} from "../adapters/demoAdapters";
|
||||
import {FALLBACK_NAME} from "../adapters/fallbackAdapter";
|
||||
import {
|
||||
defaultWeightsForAdapterSet,
|
||||
defaultWeightsForAdapter,
|
||||
} from "./weights/weights";
|
||||
} from "../../adapters/demoAdapters";
|
||||
import {FALLBACK_NAME} from "../../adapters/fallbackAdapter";
|
||||
import {defaultWeightsForAdapterSet, defaultWeightsForAdapter} from "./weights";
|
||||
import {WeightConfig} from "./WeightConfig";
|
||||
|
||||
require("../testUtil").configureEnzyme();
|
||||
require("../../testUtil").configureEnzyme();
|
||||
|
||||
describe("app/credExplorer/WeightConfig", () => {
|
||||
describe("app/credExplorer/weights/WeightConfig", () => {
|
||||
describe("WeightConfig", () => {
|
||||
function example() {
|
||||
const onChange = jest.fn();
|
Loading…
Reference in New Issue