@@ -5,6 +5,7 @@ import { renderToString } from 'react-dom/server'
5
5
import Link from '../Link'
6
6
import match from '../match'
7
7
import RoutingContext from '../RoutingContext'
8
+ import shouldWarn from './shouldWarn'
8
9
9
10
describe ( 'v1 server rendering' , function ( ) {
10
11
@@ -67,6 +68,8 @@ describe('v1 server rendering', function () {
67
68
}
68
69
69
70
it ( 'works' , function ( done ) {
71
+ shouldWarn ( 'has been renamed' )
72
+
70
73
match ( { routes, location : '/dashboard' } , function ( error , redirectLocation , renderProps ) {
71
74
const string = renderToString (
72
75
< RoutingContext { ...renderProps } />
@@ -77,6 +80,8 @@ describe('v1 server rendering', function () {
77
80
} )
78
81
79
82
it ( 'renders active Links as active' , function ( done ) {
83
+ shouldWarn ( 'has been renamed' )
84
+
80
85
match ( { routes, location : '/about' } , function ( error , redirectLocation , renderProps ) {
81
86
const string = renderToString (
82
87
< RoutingContext { ...renderProps } />
@@ -88,6 +93,8 @@ describe('v1 server rendering', function () {
88
93
} )
89
94
90
95
it ( 'sends the redirect location' , function ( done ) {
96
+ shouldWarn ( 'deprecated' )
97
+
91
98
match ( { routes, location : '/company' } , function ( error , redirectLocation ) {
92
99
expect ( redirectLocation ) . toExist ( )
93
100
expect ( redirectLocation . pathname ) . toEqual ( '/about' )
0 commit comments