Move `WeightConfig` into the `weights` directory (#797)

Test plan: `yarn test` sufficies for this simple move.
This commit is contained in:
Dandelion Mané 2018-09-06 17:29:15 -07:00 committed by GitHub
parent eb065f3634
commit b632bd6188
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 17 deletions

View File

@ -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,

View File

@ -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";

View File

@ -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,

View File

@ -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();