mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 21:03:29 +03:00
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
10 lines
220 B
JavaScript
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()
|
|
});
|