wip mollie pagination test
This commit is contained in:
parent
ade51d9577
commit
a1bc4b6384
|
@ -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 = {
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue