Ghost/ghost/admin/mirage/models/user.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

12 lines
262 B
JavaScript

import {Model, hasMany} from 'miragejs';
export default Model.extend({
// used by the serializer to determine whether
// or not to include the post count
postCount: false,
roles: hasMany(),
posts: hasMany(),
postRevision: hasMany()
});