Fix #343, add the poss^Cility to use the test backend (WIP), improve testability of OsmConnection (WIP)

This commit is contained in:
Pieter Vander Vennet 2021-06-08 16:52:31 +02:00
parent 8d404b1ba9
commit 9458128ccf
7 changed files with 138 additions and 42 deletions

View file

@ -1,8 +1,10 @@
export default class T {
public readonly failures = []
public readonly failures : string[] = []
public readonly name : string;
constructor(testsuite: string, tests: [string, () => void][]) {
this.name = testsuite
for (const [name, test] of tests) {
try {
test();