secajs/tests/createOffer.spec.js
2025-02-26 13:57:24 +01:00

18 lines
588 B
JavaScript

const { test, expect } = require('./test-setup');
const SessionRelatedToPublickey = require('../src/models/SessionRelatedToPublickey');
const NymSet = require('../src/models/NymSet');
const ContactDetailsSet = require('../src/models/ContactDetailsSet');
test('Mock ecords are present', async ({ page }) => {
for (const someModel of [
SessionRelatedToPublickey,
NymSet,
ContactDetailsSet,
]) {
expect(await someModel.findOne()).toBeTruthy();
}
});
// Check that UI controls are manageable with a few test cases.
// Check that the offer is created after submitting