@@ -66,7 +66,7 @@ describe('listChanges', () => {
6666
6767 it ( 'should stream in order events' , ( done ) => {
6868 const aref = ref ( rando ( ) ) ;
69- const obs = listChanges ( aref . orderByChild ( 'name' ) , [ 'child_added' ] ) ;
69+ const obs = listChanges < any > ( aref . orderByChild ( 'name' ) , [ 'child_added' ] ) ;
7070 const sub = obs . pipe ( take ( 1 ) ) . subscribe ( changes => {
7171 const names = changes . map ( change => change . payload . val ( ) . name ) ;
7272 expect ( names [ 0 ] ) . toEqual ( 'one' ) ;
@@ -78,7 +78,7 @@ describe('listChanges', () => {
7878
7979 it ( 'should stream in order events w/child_added' , ( done ) => {
8080 const aref = ref ( rando ( ) ) ;
81- const obs = listChanges ( aref . orderByChild ( 'name' ) , [ 'child_added' ] ) ;
81+ const obs = listChanges < any > ( aref . orderByChild ( 'name' ) , [ 'child_added' ] ) ;
8282 const sub = obs . pipe ( skip ( 1 ) , take ( 1 ) ) . subscribe ( changes => {
8383 const names = changes . map ( change => change . payload . val ( ) . name ) ;
8484 expect ( names [ 0 ] ) . toEqual ( 'anotha one' ) ;
@@ -92,7 +92,7 @@ describe('listChanges', () => {
9292
9393 it ( 'should stream events filtering' , ( done ) => {
9494 const aref = ref ( rando ( ) ) ;
95- const obs = listChanges ( aref . orderByChild ( 'name' ) . equalTo ( 'zero' ) , [ 'child_added' ] ) ;
95+ const obs = listChanges < any > ( aref . orderByChild ( 'name' ) . equalTo ( 'zero' ) , [ 'child_added' ] ) ;
9696 obs . pipe ( skip ( 1 ) , take ( 1 ) ) . subscribe ( changes => {
9797 const names = changes . map ( change => change . payload . val ( ) . name ) ;
9898 expect ( names [ 0 ] ) . toEqual ( 'zero' ) ;
@@ -117,7 +117,7 @@ describe('listChanges', () => {
117117
118118 it ( 'should process a new child_changed event' , ( done ) => {
119119 const aref = ref ( rando ( ) ) ;
120- const obs = listChanges ( aref , [ 'child_added' , 'child_changed' ] )
120+ const obs = listChanges < any > ( aref , [ 'child_added' , 'child_changed' ] )
121121 const sub = obs . pipe ( skip ( 1 ) , take ( 1 ) ) . subscribe ( changes => {
122122 const data = changes . map ( change => change . payload . val ( ) ) ;
123123 expect ( data [ 1 ] . name ) . toEqual ( 'lol' ) ;
0 commit comments