From 6920c03b3f0df1fb4e78123999380ecba2a209f2 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 25 Apr 2022 18:42:39 +0100 Subject: [PATCH] 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 --- test/e2e-api/admin/email-previews.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e-api/admin/email-previews.test.js b/test/e2e-api/admin/email-previews.test.js index 8e3a7d400d..522d5aa4c8 100644 --- a/test/e2e-api/admin/email-previews.test.js +++ b/test/e2e-api/admin/email-previews.test.js @@ -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/)