15
15
// specific language governing permissions and limitations
16
16
// under the License.
17
17
18
- import Arrow , {
19
- } from '../Arrow' ;
18
+ import Arrow from '../Arrow' ;
20
19
21
20
const {
22
21
col,
@@ -25,7 +24,7 @@ const {
25
24
26
25
describe ( `Table` , ( ) => {
27
26
test ( `can create an empty table` , ( ) => {
28
- expect ( Table . empty ( ) . length ) . toEqual ( 0 )
27
+ expect ( Table . empty ( ) . length ) . toEqual ( 0 ) ;
29
28
} ) ;
30
29
31
30
describe ( `single record batch` , ( ) => {
@@ -147,7 +146,7 @@ describe(`Table`, () => {
147
146
test ( `scans expected values` , ( ) => {
148
147
let expected_idx = 0 ;
149
148
table . scan ( ( idx , batch ) => {
150
- const columns = batch . schema . fields . map ( ( _ , i ) => batch . getChildAt ( i ) ) ;
149
+ const columns = batch . schema . fields . map ( ( _ , i ) => batch . getChildAt ( i ) ! ) ;
151
150
expect ( columns . map ( ( c ) => c . get ( idx ) ) ) . toEqual ( values [ expected_idx ++ ] ) ;
152
151
} ) ;
153
152
} ) ;
@@ -353,7 +352,7 @@ describe(`Table`, () => {
353
352
test ( `scans expected values` , ( ) => {
354
353
let expected_idx = 0 ;
355
354
table . scan ( ( idx , batch ) => {
356
- const columns = batch . schema . fields . map ( ( _ , i ) => batch . getChildAt ( i ) ) ;
355
+ const columns = batch . schema . fields . map ( ( _ , i ) => batch . getChildAt ( i ) ! ) ;
357
356
expect ( columns . map ( ( c ) => c . get ( idx ) ) ) . toEqual ( values [ expected_idx ++ ] ) ;
358
357
} ) ;
359
358
} ) ;
0 commit comments