From 6564c85a30be41d01345846f55c421ff4258d471 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Fri, 23 Apr 2021 15:14:28 +0100 Subject: [PATCH] continuing work on smtp testing. --- packages/worker/src/api/routes/tests/email.spec.js | 1 - .../src/api/routes/tests/utilities/TestConfiguration.js | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/worker/src/api/routes/tests/email.spec.js b/packages/worker/src/api/routes/tests/email.spec.js index 2f571e86aa..b67bce2bed 100644 --- a/packages/worker/src/api/routes/tests/email.spec.js +++ b/packages/worker/src/api/routes/tests/email.spec.js @@ -26,6 +26,5 @@ describe("/api/admin/email", () => { .set(config.defaultHeaders()) .expect("Content-Type", /json/) .expect(200) - expect(res.body._rev).toBeDefined() }) }) \ No newline at end of file diff --git a/packages/worker/src/api/routes/tests/utilities/TestConfiguration.js b/packages/worker/src/api/routes/tests/utilities/TestConfiguration.js index 7266fe4fd7..18656a0a2a 100644 --- a/packages/worker/src/api/routes/tests/utilities/TestConfiguration.js +++ b/packages/worker/src/api/routes/tests/utilities/TestConfiguration.js @@ -1,4 +1,4 @@ -const env = require("../../environment") +const env = require("../../../../environment") const controllers = require("./controllers") const supertest = require("supertest") const { jwt } = require("@budibase/auth").auth @@ -67,9 +67,10 @@ class TestConfiguration { await this._req({ type: Configs.SMTP, config: { - url: "http://localhost:10000", - logoUrl: "http://localhost:10000/logo", - company: "TestCompany", + port: 12345, + host: "smtptesthost.com", + from: "testfrom@test.com", + } }, null, controllers.config.save) }