registrables -> feature

Co-authored-by: Fredrik Adelöw <freben@users.noreply.github.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-08-12 14:13:02 +02:00
parent 0452529374
commit 0ef2719b11
@@ -53,13 +53,13 @@ export function createTestBackend<TServices extends any[]>(
/** @alpha */
export async function startTestBackend<TServices extends any[]>(
options: TestBackendOptions<TServices> & {
registrables?: BackendFeature[];
features?: BackendFeature[];
},
): Promise<void> {
const { registrables = [], ...otherOptions } = options;
const { features = [], ...otherOptions } = options;
const backend = createTestBackend(otherOptions);
for (const reg of registrables) {
backend.add(reg);
for (const feature of features) {
backend.add(feature);
}
await backend.start();
}