@dossierhq/integration-test
Version:
Integration test to ensure that different Dossier database adapters work as expected.
15 lines • 638 B
JavaScript
/// <reference types="./SchemaGetSchemaSpecificationSubSuite.d.ts" />
import { Schema } from '@dossierhq/core';
import { assertOkResult } from '../Asserts.js';
import {} from '../Builder.js';
export const SchemaGetSchemaSpecificationSubSuite = [
getSchemaSpecification_normal,
];
async function getSchemaSpecification_normal({ clientProvider }) {
const client = clientProvider.dossierClient();
const result = await client.getSchemaSpecification();
assertOkResult(result);
const schema = new Schema(result.value);
assertOkResult(schema.validate());
}
//# sourceMappingURL=SchemaGetSchemaSpecificationSubSuite.js.map