import { Notification } from '@/models/Notification' import { MockFunction } from '@/services/Mocker' export const randomNotification: MockFunction?]> = function(overrides = {}) { return new Notification({ id: this.create('id'), created: this.create('date'), updated: this.create('date'), isActive: this.create('boolean'), stateNames: this.createMany('stateType', this.create('number', [0, 3])), tags: this.createMany('noun', this.create('number', [0, 3])), blockDocumentId: this.create('id'), ...overrides, }) }