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:
Dandelion Mané 2018-05-08 17:03:01 -07:00 committed by GitHub
parent d9b4673dbd
commit 0c59435a2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -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", () => {

View File

@ -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) {

View File

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

View File

@ -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", () => {