@@ -53,10 +53,10 @@ describe('When a router enters a branch', function () {
53
53
NewsFeedRoute = {
54
54
path : 'news' ,
55
55
component : NewsFeed ,
56
- onEnter ( nextState , replaceState ) {
56
+ onEnter ( nextState , replace ) {
57
57
expect ( this ) . toBe ( NewsFeedRoute )
58
58
expect ( nextState . routes ) . toContain ( NewsFeedRoute )
59
- expect ( replaceState ) . toBeA ( 'function' )
59
+ expect ( replace ) . toBeA ( 'function' )
60
60
} ,
61
61
onLeave ( ) {
62
62
expect ( this ) . toBe ( NewsFeedRoute )
@@ -66,10 +66,10 @@ describe('When a router enters a branch', function () {
66
66
InboxRoute = {
67
67
path : 'inbox' ,
68
68
component : Inbox ,
69
- onEnter ( nextState , replaceState ) {
69
+ onEnter ( nextState , replace ) {
70
70
expect ( this ) . toBe ( InboxRoute )
71
71
expect ( nextState . routes ) . toContain ( InboxRoute )
72
- expect ( replaceState ) . toBeA ( 'function' )
72
+ expect ( replace ) . toBeA ( 'function' )
73
73
} ,
74
74
onLeave ( ) {
75
75
expect ( this ) . toBe ( InboxRoute )
@@ -78,12 +78,12 @@ describe('When a router enters a branch', function () {
78
78
79
79
RedirectToInboxRoute = {
80
80
path : 'redirect-to-inbox' ,
81
- onEnter ( nextState , replaceState ) {
81
+ onEnter ( nextState , replace ) {
82
82
expect ( this ) . toBe ( RedirectToInboxRoute )
83
83
expect ( nextState . routes ) . toContain ( RedirectToInboxRoute )
84
- expect ( replaceState ) . toBeA ( 'function' )
84
+ expect ( replace ) . toBeA ( 'function' )
85
85
86
- replaceState ( null , '/inbox' )
86
+ replace ( '/inbox' )
87
87
} ,
88
88
onLeave ( ) {
89
89
expect ( this ) . toBe ( RedirectToInboxRoute )
@@ -92,10 +92,10 @@ describe('When a router enters a branch', function () {
92
92
93
93
MessageRoute = {
94
94
path : 'messages/:messageID' ,
95
- onEnter ( nextState , replaceState ) {
95
+ onEnter ( nextState , replace ) {
96
96
expect ( this ) . toBe ( MessageRoute )
97
97
expect ( nextState . routes ) . toContain ( MessageRoute )
98
- expect ( replaceState ) . toBeA ( 'function' )
98
+ expect ( replace ) . toBeA ( 'function' )
99
99
} ,
100
100
onLeave ( ) {
101
101
expect ( this ) . toBe ( MessageRoute )
@@ -105,10 +105,10 @@ describe('When a router enters a branch', function () {
105
105
DashboardRoute = {
106
106
path : '/' ,
107
107
component : Dashboard ,
108
- onEnter ( nextState , replaceState ) {
108
+ onEnter ( nextState , replace ) {
109
109
expect ( this ) . toBe ( DashboardRoute )
110
110
expect ( nextState . routes ) . toContain ( DashboardRoute )
111
- expect ( replaceState ) . toBeA ( 'function' )
111
+ expect ( replace ) . toBeA ( 'function' )
112
112
} ,
113
113
onLeave ( ) {
114
114
expect ( this ) . toBe ( DashboardRoute )
0 commit comments