@budibase/worker 2.8.22 → 2.8.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.8.
|
|
4
|
+
"version": "2.8.23",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"author": "Budibase",
|
|
39
39
|
"license": "GPL-3.0",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@budibase/backend-core": "2.8.
|
|
42
|
-
"@budibase/pro": "2.8.
|
|
43
|
-
"@budibase/string-templates": "2.8.
|
|
44
|
-
"@budibase/types": "2.8.
|
|
41
|
+
"@budibase/backend-core": "2.8.23",
|
|
42
|
+
"@budibase/pro": "2.8.23",
|
|
43
|
+
"@budibase/string-templates": "2.8.23",
|
|
44
|
+
"@budibase/types": "2.8.23",
|
|
45
45
|
"@koa/router": "8.0.8",
|
|
46
46
|
"@sentry/node": "6.17.7",
|
|
47
47
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"typescript": "4.7.3",
|
|
105
105
|
"update-dotenv": "1.1.1"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "a705586ad7fe75a94caa941b295c5684026f7440"
|
|
108
108
|
}
|
|
@@ -277,6 +277,7 @@ describe("configs", () => {
|
|
|
277
277
|
describe("GET /api/global/configs/public", () => {
|
|
278
278
|
it("should return the expected public settings", async () => {
|
|
279
279
|
await saveSettingsConfig()
|
|
280
|
+
mocks.pro.features.isSSOEnforced.mockResolvedValue(false)
|
|
280
281
|
|
|
281
282
|
const res = await config.api.configs.getPublicSettings()
|
|
282
283
|
const body = res.body as GetPublicSettingsResponse
|
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import { structures } from "../../../tests"
|
|
2
|
-
import { mocks } from "@budibase/backend-core/tests"
|
|
1
|
+
import { structures, mocks } from "../../../tests"
|
|
3
2
|
import { env, context } from "@budibase/backend-core"
|
|
4
3
|
import * as users from "../users"
|
|
5
4
|
import { CloudAccount } from "@budibase/types"
|
|
6
5
|
import { isPreventPasswordActions } from "../users"
|
|
7
6
|
|
|
8
|
-
jest.mock("@budibase/pro")
|
|
9
|
-
import * as _pro from "@budibase/pro"
|
|
10
|
-
const pro = jest.mocked(_pro, true)
|
|
11
|
-
|
|
12
7
|
describe("users", () => {
|
|
13
8
|
beforeEach(() => {
|
|
14
9
|
jest.clearAllMocks()
|
|
@@ -56,7 +51,7 @@ describe("users", () => {
|
|
|
56
51
|
it("returns true for all users when sso is enforced", async () => {
|
|
57
52
|
await context.doInTenant(structures.tenant.id(), async () => {
|
|
58
53
|
const user = structures.users.user()
|
|
59
|
-
pro.features.isSSOEnforced.mockResolvedValueOnce(true)
|
|
54
|
+
mocks.pro.features.isSSOEnforced.mockResolvedValueOnce(true)
|
|
60
55
|
const result = await users.isPreventPasswordActions(user)
|
|
61
56
|
expect(result).toBe(true)
|
|
62
57
|
})
|