1
0
Fork 0
mirror of synced 2024-07-01 12:30:41 +12:00

continuing work on smtp testing.

This commit is contained in:
mike12345567 2021-04-23 15:14:28 +01:00
parent ea8e3b7d3f
commit d0072c28f8
2 changed files with 5 additions and 5 deletions

View file

@ -26,6 +26,5 @@ describe("/api/admin/email", () => {
.set(config.defaultHeaders())
.expect("Content-Type", /json/)
.expect(200)
expect(res.body._rev).toBeDefined()
})
})

View file

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