@@ -85,7 +85,7 @@ describe("ReactFireMixin Tests:", function() {
8585 componentWillMount : function ( ) {
8686 var _this = this ;
8787
88- expect ( function ( ) { _this . bindAsArray ( firebaseRef . limit ( 10 ) , "items" ) ; } ) . not . toThrow ( ) ;
88+ expect ( function ( ) { _this . bindAsArray ( firebaseRef . limitToLast ( 10 ) , "items" ) ; } ) . not . toThrow ( ) ;
8989 } ,
9090
9191 render : function ( ) {
@@ -126,7 +126,7 @@ describe("ReactFireMixin Tests:", function() {
126126 mixins : [ ReactFireMixin ] ,
127127
128128 componentWillMount : function ( ) {
129- this . bindAsArray ( firebaseRef . limit ( 2 ) , "items" ) ;
129+ this . bindAsArray ( firebaseRef . limitToLast ( 2 ) , "items" ) ;
130130 } ,
131131
132132 componentDidMount : function ( ) {
@@ -225,7 +225,7 @@ describe("ReactFireMixin Tests:", function() {
225225 componentWillMount : function ( ) {
226226 var _this = this ;
227227
228- expect ( function ( ) { _this . bindAsObject ( firebaseRef . limit ( 10 ) , "items" ) ; } ) . not . toThrow ( ) ;
228+ expect ( function ( ) { _this . bindAsObject ( firebaseRef . limitToLast ( 10 ) , "items" ) ; } ) . not . toThrow ( ) ;
229229 } ,
230230
231231 render : function ( ) {
@@ -266,7 +266,7 @@ describe("ReactFireMixin Tests:", function() {
266266 mixins : [ ReactFireMixin ] ,
267267
268268 componentWillMount : function ( ) {
269- this . bindAsObject ( firebaseRef . limit ( 2 ) , "items" ) ;
269+ this . bindAsObject ( firebaseRef . limitToLast ( 2 ) , "items" ) ;
270270 } ,
271271
272272 componentDidMount : function ( ) {
@@ -367,7 +367,7 @@ describe("ReactFireMixin Tests:", function() {
367367 var _this = this ;
368368
369369 validBindVars . forEach ( function ( validBindVar ) {
370- _this . bindAsArray ( firebaseRef . limit ( 10 ) , validBindVar ) ;
370+ _this . bindAsArray ( firebaseRef . limitToLast ( 10 ) , validBindVar ) ;
371371 expect ( function ( ) { _this . unbind ( validBindVar ) ; } ) . not . toThrow ( ) ;
372372 } ) ;
373373 } ,
0 commit comments