File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,24 @@ describe('isActive', function () {
122
122
} )
123
123
} )
124
124
125
+ describe ( 'a pathname that matches a nested absolute path' , function ( ) {
126
+ describe ( 'with no query' , function ( ) {
127
+ it ( 'is active' , function ( done ) {
128
+ render ( (
129
+ < Router history = { createHistory ( '/absolute' ) } >
130
+ < Route path = "/home" >
131
+ < Route path = "/absolute" />
132
+ </ Route >
133
+ </ Router >
134
+ ) , node , function ( ) {
135
+ expect ( this . history . isActive ( '/absolute' ) ) . toBe ( true )
136
+ expect ( this . history . isActive ( '/absolute' , null , true ) ) . toBe ( true )
137
+ done ( )
138
+ } )
139
+ } )
140
+ } )
141
+ } )
142
+
125
143
describe ( 'a pathname that matches an index URL' , function ( ) {
126
144
describe ( 'with no query' , function ( ) {
127
145
it ( 'is active' , function ( done ) {
You can’t perform that action at this time.
0 commit comments