36ba47604f
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
12 lines
262 B
JavaScript
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()
|
|
});
|