@@ -161,19 +161,19 @@ describe(`Table`, () => {
161
161
test ( `countBy on dictionary returns the correct counts` , ( ) => {
162
162
// Make sure countBy works both with and without the Col wrapper
163
163
// class
164
- expect ( table . countBy ( col ( 'dictionary' ) ) . asJSON ( ) ) . toEqual ( {
164
+ expect ( table . countBy ( col ( 'dictionary' ) ) . toJSON ( ) ) . toEqual ( {
165
165
'a' : 3 ,
166
166
'b' : 2 ,
167
167
'c' : 2 ,
168
168
} ) ;
169
- expect ( table . countBy ( 'dictionary' ) . asJSON ( ) ) . toEqual ( {
169
+ expect ( table . countBy ( 'dictionary' ) . toJSON ( ) ) . toEqual ( {
170
170
'a' : 3 ,
171
171
'b' : 2 ,
172
172
'c' : 2 ,
173
173
} ) ;
174
174
} ) ;
175
175
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 ( {
177
177
'a' : 1 ,
178
178
'b' : 1 ,
179
179
'c' : 1 ,
@@ -366,19 +366,19 @@ describe(`Table`, () => {
366
366
test ( `countBy on dictionary returns the correct counts` , ( ) => {
367
367
// Make sure countBy works both with and without the Col wrapper
368
368
// class
369
- expect ( table . countBy ( col ( 'dictionary' ) ) . asJSON ( ) ) . toEqual ( {
369
+ expect ( table . countBy ( col ( 'dictionary' ) ) . toJSON ( ) ) . toEqual ( {
370
370
'a' : 3 ,
371
371
'b' : 3 ,
372
372
'c' : 3 ,
373
373
} ) ;
374
- expect ( table . countBy ( 'dictionary' ) . asJSON ( ) ) . toEqual ( {
374
+ expect ( table . countBy ( 'dictionary' ) . toJSON ( ) ) . toEqual ( {
375
375
'a' : 3 ,
376
376
'b' : 3 ,
377
377
'c' : 3 ,
378
378
} ) ;
379
379
} ) ;
380
380
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 ( {
382
382
'a' : 1 ,
383
383
'b' : 2 ,
384
384
'c' : 1 ,
0 commit comments