@@ -99,7 +99,8 @@ describe('reptar Reptar', function test() {
9999
100100 it ( 'calls every middleware function in the expected order' , ( ) => {
101101 _ . reduce ( instance . _test . middlewares , ( prevValue , nextValue ) => {
102- assert ( nextValue >= prevValue ) ;
102+ assert ( nextValue > prevValue ) ;
103+ return nextValue ;
103104 } ) ;
104105 } ) ;
105106
@@ -109,15 +110,15 @@ describe('reptar Reptar', function test() {
109110 didUpdate,
110111 } = instance . _test . lifecycle ;
111112
112- assert ( willUpdate [ 0 ] <= didUpdate [ 0 ] ) ;
113+ assert ( willUpdate [ 0 ] < didUpdate [ 0 ] ) ;
113114 } ) ;
114115
115116 it ( 'didUpdate is called before the first middleware' , ( ) => {
116117 const {
117118 didUpdate,
118119 } = instance . _test . lifecycle ;
119120
120- assert ( didUpdate [ 0 ] <= instance . _test . middlewares [ 0 ] ) ;
121+ assert ( didUpdate [ 0 ] < instance . _test . middlewares [ 0 ] ) ;
121122 } ) ;
122123
123124 it ( 'willBuild is not called' , ( ) => {
@@ -178,7 +179,7 @@ describe('reptar Reptar', function test() {
178179 instance . _test . middlewares . length - 1
179180 ] ;
180181
181- assert ( lastMiddleware <= willBuild [ 0 ] ) ;
182+ assert ( lastMiddleware < willBuild [ 0 ] ) ;
182183 } ) ;
183184
184185 it ( 'willBuild is called before didBuild' , ( ) => {
@@ -187,7 +188,7 @@ describe('reptar Reptar', function test() {
187188 didBuild,
188189 } = instance . _test . lifecycle ;
189190
190- assert ( willBuild [ 0 ] <= didBuild [ 0 ] ) ;
191+ assert ( willBuild [ 0 ] < didBuild [ 0 ] ) ;
191192 } ) ;
192193 } ) ;
193194 } ) ;
0 commit comments