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:
Daniel Lockyer 2022-04-25 18:42:39 +01:00
parent 68cffa62ae
commit 6920c03b3f
No known key found for this signature in database
GPG Key ID: D21186F0B47295AD

View File

@ -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/)