test: update draft test
This commit is contained in:
parent
e2dfb1e195
commit
2b48f10b77
1 changed files with 2 additions and 2 deletions
|
@ -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 }) => {
|
||||
|
|
Loading…
Reference in a new issue