test: update draft test

This commit is contained in:
Nate Moore 2021-06-28 12:16:53 -04:00
parent e2dfb1e195
commit 2b48f10b77

View file

@ -34,8 +34,8 @@ Markdown('Cant load a post being unpublished', async ({ runtime }) => {
const result = await runtime.load('/post-unpublished');
assert.type(result.error, 'object')
assert.equal(result.error.message, 'Unpublished document');
assert.equal(result.statusCode, 404);
assert.equal(result.error.message, 'Document is not published');
assert.equal(result.statusCode, 403);
});
Markdown('Cant load a post being published', async ({ runtime }) => {