@@ -43,28 +43,28 @@ describe('when a Route is active', function () {
43
43
App ( {
44
44
initialState : {
45
45
activeRoutes : [ route ] ,
46
- activeParams : { id : '123' , show : 'true' } ,
47
- activeQuery : { search : 'abc' }
46
+ activeParams : { id : '123' , show : 'true' , variant : 456 } ,
47
+ activeQuery : { search : 'abc' , limit : 789 }
48
48
}
49
49
} )
50
50
) ;
51
51
} ) ;
52
52
53
53
describe ( 'and no query is used' , function ( ) {
54
54
it ( 'is active' , function ( ) {
55
- assert ( app . isActive ( 'products' , { id : 123 } ) ) ;
55
+ assert ( app . isActive ( 'products' , { id : 123 , variant : '456' } ) ) ;
56
56
} ) ;
57
57
} ) ;
58
58
59
59
describe ( 'and a matching query is used' , function ( ) {
60
60
it ( 'is active' , function ( ) {
61
- assert ( app . isActive ( 'products' , { id : 123 } , { search : 'abc' } ) ) ;
61
+ assert ( app . isActive ( 'products' , { id : 123 } , { search : 'abc' , limit : '789' } ) ) ;
62
62
} ) ;
63
63
} ) ;
64
64
65
65
describe ( 'but the query does not match' , function ( ) {
66
66
it ( 'is not active' , function ( ) {
67
- refute ( app . isActive ( 'products' , { id : 123 } , { search : 'def' } ) ) ;
67
+ refute ( app . isActive ( 'products' , { id : 123 } , { search : 'def' , limit : '123' } ) ) ;
68
68
} ) ;
69
69
} ) ;
70
70
} ) ;
0 commit comments