@budibase/worker 3.9.1 → 3.9.2
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": "3.9.
|
|
4
|
+
"version": "3.9.2",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "f9927b35b3939f1b96eb911d820ba5b06f288cd6"
|
|
124
124
|
}
|
|
@@ -648,7 +648,7 @@ describe("scim", () => {
|
|
|
648
648
|
budibaseUserId: user.id,
|
|
649
649
|
email: user.emails![0].value,
|
|
650
650
|
}
|
|
651
|
-
mocks.accounts.
|
|
651
|
+
mocks.accounts.getAccountByTenantId.mockResolvedValue(account)
|
|
652
652
|
|
|
653
653
|
await deleteScimUser(user.id, {
|
|
654
654
|
expect: {
|
|
@@ -284,7 +284,7 @@ describe("/api/global/users", () => {
|
|
|
284
284
|
|
|
285
285
|
it("should not be able to create user with the same email as an account", async () => {
|
|
286
286
|
const user = structures.users.user()
|
|
287
|
-
const account = structures.accounts.
|
|
287
|
+
const account = structures.accounts.accountDetail()
|
|
288
288
|
accounts.getAccount.mockReturnValueOnce(Promise.resolve(account))
|
|
289
289
|
|
|
290
290
|
const response = await config.api.users.saveUser(user, 400)
|
|
@@ -743,7 +743,9 @@ describe("/api/global/users", () => {
|
|
|
743
743
|
it("should not be able to destroy account owner", async () => {
|
|
744
744
|
const user = await config.createUser()
|
|
745
745
|
const account = structures.accounts.cloudAccount()
|
|
746
|
-
accounts.
|
|
746
|
+
accounts.getAccountByTenantId.mockReturnValueOnce(
|
|
747
|
+
Promise.resolve(account)
|
|
748
|
+
)
|
|
747
749
|
|
|
748
750
|
const response = await config.api.users.deleteUser(user._id!, 400)
|
|
749
751
|
|
|
@@ -754,7 +756,9 @@ describe("/api/global/users", () => {
|
|
|
754
756
|
const user = await config.user!
|
|
755
757
|
const account = structures.accounts.cloudAccount()
|
|
756
758
|
account.email = user.email
|
|
757
|
-
accounts.
|
|
759
|
+
accounts.getAccountByTenantId.mockReturnValueOnce(
|
|
760
|
+
Promise.resolve(account)
|
|
761
|
+
)
|
|
758
762
|
|
|
759
763
|
const response = await config.api.users.deleteUser(user._id!, 400)
|
|
760
764
|
|