wip mollie pagination test

This commit is contained in:
Kiara Grouwstra 2021-10-03 22:24:56 +02:00
parent ade51d9577
commit a1bc4b6384
2 changed files with 12 additions and 5 deletions

View File

@ -1,5 +1,5 @@
"use strict";
import mergeMap from "rxjs/operators";
import { mergeMap } from "rxjs/operators";
import { of, from, concat } from "rxjs";
export const mollieKeys = {

View File

@ -2,7 +2,7 @@ import { createMollieClient } from '@mollie/api-client';
import { mollieKeys, listAll } from '../src/mollie.js';
const log = console.log.bind(console);
test('airtable can print records', () => {
test('airtable can print records', (done) => {
const mollieClient = createMollieClient({ apiKey: mollieKeys.leden });
const entity = mollieClient.customers;
@ -10,9 +10,16 @@ test('airtable can print records', () => {
log('just before subscribe');
obs.subscribe({
next(x) { log('got value ' + x); },
error(err) { console.error('something wrong occurred: ' + err); },
complete() { log('done'); }
next(x) {
log('got value ' + x);
},
error(err) {
console.error('something wrong occurred: ' + err);
},
complete() {
log('done');
done();
}
});
log('just after subscribe');