synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
21 lines (20 loc) • 670 B
JavaScript
import { faker as n } from "@faker-js/faker";
import { pickRandomMockUser as r } from "./fakerUtils.js";
function o(e) {
return {
id: String(n.number.int()),
etag: n.string.uuid(),
name: n.lorem.words({ min: 1, max: 4 }),
description: n.lorem.words({ min: 1, max: 10 }),
ownerId: String(r().id),
createdOn: n.date.anytime().toISOString(),
contentSource: `syn${n.number.int({ min: 1e4, max: 99999 })}`,
submissionInstructionsMessage: n.lorem.words({ min: 1, max: 10 }),
submissionReceiptMessage: n.lorem.words({ min: 1, max: 10 }),
...e
};
}
export {
o as generateEvaluation
};
//# sourceMappingURL=generateEvaluation.js.map