mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 04:13:30 +03:00
Fixed erroneously passing test
- this test was passing for the wrong reason because it wasn't using the correct endpoint that we were meant to be testing
This commit is contained in:
parent
68cffa62ae
commit
6920c03b3f
@ -17,7 +17,7 @@ describe('Email Preview API', function () {
|
||||
|
||||
describe('Read', function () {
|
||||
it('can\'t retrieve for non existent post', async function () {
|
||||
const res = await request.get(localUtils.API.getApiQuery(`posts/${ObjectId().toHexString()}/`))
|
||||
const res = await request.get(localUtils.API.getApiQuery(`email_previews/posts/${ObjectId().toHexString()}/`))
|
||||
.set('Origin', config.get('url'))
|
||||
.set('Accept', 'application/json')
|
||||
.expect('Content-Type', /json/)
|
||||
|
Loading…
Reference in New Issue
Block a user