@@ -161,19 +161,19 @@ describe(`Table`, () => {
161161 test ( `countBy on dictionary returns the correct counts` , ( ) => {
162162 // Make sure countBy works both with and without the Col wrapper
163163 // class
164- expect ( table . countBy ( col ( 'dictionary' ) ) . asJSON ( ) ) . toEqual ( {
164+ expect ( table . countBy ( col ( 'dictionary' ) ) . toJSON ( ) ) . toEqual ( {
165165 'a' : 3 ,
166166 'b' : 2 ,
167167 'c' : 2 ,
168168 } ) ;
169- expect ( table . countBy ( 'dictionary' ) . asJSON ( ) ) . toEqual ( {
169+ expect ( table . countBy ( 'dictionary' ) . toJSON ( ) ) . toEqual ( {
170170 'a' : 3 ,
171171 'b' : 2 ,
172172 'c' : 2 ,
173173 } ) ;
174174 } ) ;
175175 test ( `countBy on dictionary with filter returns the correct counts` , ( ) => {
176- expect ( table . filter ( col ( 'i32' ) . eq ( 1 ) ) . countBy ( 'dictionary' ) . asJSON ( ) ) . toEqual ( {
176+ expect ( table . filter ( col ( 'i32' ) . eq ( 1 ) ) . countBy ( 'dictionary' ) . toJSON ( ) ) . toEqual ( {
177177 'a' : 1 ,
178178 'b' : 1 ,
179179 'c' : 1 ,
@@ -366,19 +366,19 @@ describe(`Table`, () => {
366366 test ( `countBy on dictionary returns the correct counts` , ( ) => {
367367 // Make sure countBy works both with and without the Col wrapper
368368 // class
369- expect ( table . countBy ( col ( 'dictionary' ) ) . asJSON ( ) ) . toEqual ( {
369+ expect ( table . countBy ( col ( 'dictionary' ) ) . toJSON ( ) ) . toEqual ( {
370370 'a' : 3 ,
371371 'b' : 3 ,
372372 'c' : 3 ,
373373 } ) ;
374- expect ( table . countBy ( 'dictionary' ) . asJSON ( ) ) . toEqual ( {
374+ expect ( table . countBy ( 'dictionary' ) . toJSON ( ) ) . toEqual ( {
375375 'a' : 3 ,
376376 'b' : 3 ,
377377 'c' : 3 ,
378378 } ) ;
379379 } ) ;
380380 test ( `countBy on dictionary with filter returns the correct counts` , ( ) => {
381- expect ( table . filter ( col ( 'i32' ) . eq ( 1 ) ) . countBy ( col ( 'dictionary' ) ) . asJSON ( ) ) . toEqual ( {
381+ expect ( table . filter ( col ( 'i32' ) . eq ( 1 ) ) . countBy ( col ( 'dictionary' ) ) . toJSON ( ) ) . toEqual ( {
382382 'a' : 1 ,
383383 'b' : 2 ,
384384 'c' : 1 ,
0 commit comments