Skip to content

Commit 9c2ff85

Browse files
committed
Use only public API in tests
1 parent 432dc9c commit 9c2ff85

30 files changed

+46
-1401
lines changed

packages/react-router-config/modules/__tests__/integration-test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import React from "react";
22
import ReactDOMServer from "react-dom/server";
3-
import { StaticRouter } from "react-router";
43

5-
import matchRoutes from "../matchRoutes";
6-
import renderRoutes from "../renderRoutes";
4+
import { StaticRouter } from "react-router";
5+
import { matchRoutes, renderRoutes } from "react-router-config";
76

87
describe("integration", () => {
98
it("generates the same matches in renderRoutes and matchRoutes", () => {

packages/react-router-config/modules/__tests__/matchRoutes-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import matchRoutes from "../matchRoutes";
1+
import { matchRoutes } from "react-router-config";
22

33
it("finds matched routes", () => {
44
const routes = [

packages/react-router-config/modules/__tests__/renderRoutes-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from "react";
22
import ReactDOM from "react-dom";
33
import ReactDOMServer from "react-dom/server";
4-
import { Router, StaticRouter } from "react-router";
54
import createHistory from "history/createMemoryHistory";
65

7-
import renderRoutes from "../renderRoutes";
6+
import { Router, StaticRouter } from "react-router";
7+
import { renderRoutes } from "react-router-config";
88

99
describe("renderRoutes", () => {
1010
let renderedRoutes;

0 commit comments

Comments
 (0)