const post = testUtils.DataGenerator.forKnex.createPost({
id: ObjectId.generate(),
title: ‘Post with email-only card’,
slug: ‘email-only-card’,
mobiledoc: ‘{“version”:“0.3.1”,“atoms”:,“cards”:[[“email”,{“html”:“
Hey {first_name \“there\”} {unknown}
Welcome to your first Ghost email!
”}],[“email”,{“html”:“
Another email card with a similar replacement, {first_name, \“see?\”}
”}]],“markups”:
,“sections”:[[10,0],[1,“p”,[[0,
,0,“This is the actual post content…”]]],[10,1],[1,“p”,
]]}’,
html: ‘
This is the actual post content…
’,
plaintext: ‘This is the actual post content…’,
status: ‘draft’,
uuid: ‘d52c42ae-2755-455c-80ec-70b2ec55c904’
});
return models.Post.add(post, {context: {internal: true}}).then(() => {`
this seems to do what im looking for