Move testUtil.js into src/app (#248)
testUtil contains some useful configuration endpoints for our frontend testing. This commit moves it out of the artifact editor and up to `src/app`. Test plan: `yarn travis` passes.
This commit is contained in:
parent
d9b4673dbd
commit
0c59435a2b
|
@ -3,7 +3,7 @@ import React from "react";
|
||||||
import ReactDOM from "react-dom";
|
import ReactDOM from "react-dom";
|
||||||
import App from "./App";
|
import App from "./App";
|
||||||
|
|
||||||
require("./testUtil").configureAphrodite();
|
require("../../../app/testUtil").configureAphrodite();
|
||||||
|
|
||||||
// Check that PropTypes check out.
|
// Check that PropTypes check out.
|
||||||
it("renders without crashing", () => {
|
it("renders without crashing", () => {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import {Graph} from "../../../core/graph";
|
||||||
import {ArtifactGraphEditor} from "./ArtifactGraphEditor";
|
import {ArtifactGraphEditor} from "./ArtifactGraphEditor";
|
||||||
import {artifactAddress} from "../artifactPlugin";
|
import {artifactAddress} from "../artifactPlugin";
|
||||||
|
|
||||||
require("./testUtil").configureAphrodite();
|
require("../../../app/testUtil").configureAphrodite();
|
||||||
require("./testUtil").configureEnzyme();
|
require("../../../app/testUtil").configureEnzyme();
|
||||||
|
|
||||||
describe("ArtifactGraphEditor", () => {
|
describe("ArtifactGraphEditor", () => {
|
||||||
function createComponent(onChange) {
|
function createComponent(onChange) {
|
||||||
|
|
|
@ -12,8 +12,8 @@ import {AdapterSet} from "./adapterSet";
|
||||||
import {ContributionList} from "./ContributionList";
|
import {ContributionList} from "./ContributionList";
|
||||||
import {Graph} from "../../../core/graph";
|
import {Graph} from "../../../core/graph";
|
||||||
|
|
||||||
require("./testUtil").configureAphrodite();
|
require("../../../app/testUtil").configureAphrodite();
|
||||||
require("./testUtil").configureEnzyme();
|
require("../../../app/testUtil").configureEnzyme();
|
||||||
|
|
||||||
function createTestData(): * {
|
function createTestData(): * {
|
||||||
type PayloadA = number;
|
type PayloadA = number;
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {parse} from "../../../github/parser";
|
||||||
import exampleRepoData from "../../../github/demoData/example-github.json";
|
import exampleRepoData from "../../../github/demoData/example-github.json";
|
||||||
import adapter from "./githubPluginAdapter";
|
import adapter from "./githubPluginAdapter";
|
||||||
|
|
||||||
require("../testUtil").configureEnzyme();
|
require("../../../../app/testUtil").configureEnzyme();
|
||||||
|
|
||||||
describe("githubPluginAdapter", () => {
|
describe("githubPluginAdapter", () => {
|
||||||
it("operates on the example repo", () => {
|
it("operates on the example repo", () => {
|
||||||
|
|
Loading…
Reference in New Issue