Ghost/ghost/admin/mirage/models/post.js
Kevin Ansfield 36ba47604f Added Admin acceptance test for post revision restoration
ref https://linear.app/tryghost/issue/ENG-1078

- adds required setup for acceptance testing post revisions
- adds happy-path test for listing, previewing, and restoring a post revision
2024-06-04 20:16:19 +01:00

10 lines
220 B
JavaScript

import {Model, belongsTo, hasMany} from 'miragejs';
export default Model.extend({
tags: hasMany(),
authors: hasMany('user'),
email: belongsTo(),
newsletter: belongsTo(),
postRevisions: hasMany()
});