message: add factories for draft-registration
diff: @@ -2,6 +2,8 @@ import { association, Factory, faker, trait, Trait } from 'ember-cli-mirage';
  import DraftRegistration from 'ember-osf-web/models/draft-registration';
  +import { NodeCategory } from 'ember-osf-web/models/node';
  +
  import { createRegistrationMetadata } from './utils';
  export interface DraftRegistrationTraits {
  @@ -11,6 +13,18 @@ export interface DraftRegistrationTraits {
  export default Factory.extend<DraftRegistration & DraftRegistrationTraits>({
  registrationSupplement: 'abcdefghijklmnopqrstuvwxyz',
  + title() {
  + return faker.lorem.sentence();
  + },
  +
  + description() {
  + return faker.lorem.paragraph();
  + },
  +
  + tags() {
  + return Array.from({ length: 5 }, () => faker.lorem.word());
  + },
  +
  datetimeInitiated() {
  return faker.date.past(1, new Date(2015, 0, 0));
  },
  @@ -25,8 +39,18 @@ export default Factory.extend<DraftRegistration & DraftRegistrationTraits>({
  registrationSchema: association() as DraftRegistration['registrationSchema'],
  + affiliatedInstitutions: association() as DraftRegistration['affiliatedInstitutions'],
  +
  + subjects: association() as DraftRegistration['subjects'],
  +
  + license: association() as DraftRegistration['license'],
  +
  registrationMetadata: {},
  + nodeLicense: null,
  +
  + category: NodeCategory.Uncategorized,
  +
  withRegistrationMetadata: trait<DraftRegistration>({
  afterCreate(draftRegistration) {
  draftRegistration.update({
  