17 lines
368 B
TypeScript
17 lines
368 B
TypeScript
import Airtable from 'airtable';
|
|
import { tbl } from '../src/airtable';
|
|
|
|
test('airtable can print records', () => {
|
|
tbl
|
|
.select()
|
|
.firstPage()
|
|
// .eachPage()
|
|
// .forEach()
|
|
.then(records => {
|
|
records.forEach((record: Airtable.Record<any>) => {
|
|
console.log(record.fields);
|
|
});
|
|
});
|
|
expect(true).toBe(true);
|
|
});
|