@budibase/worker 3.9.2 → 3.9.4
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.4",
|
|
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": "e357c4e0cbfb4e0376cb8b692bf725263a5f7dc3"
|
|
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.getAccount.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.cloudAccount()
|
|
288
288
|
accounts.getAccount.mockReturnValueOnce(Promise.resolve(account))
|
|
289
289
|
|
|
290
290
|
const response = await config.api.users.saveUser(user, 400)
|
|
@@ -743,9 +743,7 @@ 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.
|
|
747
|
-
Promise.resolve(account)
|
|
748
|
-
)
|
|
746
|
+
accounts.getAccount.mockReturnValueOnce(Promise.resolve(account))
|
|
749
747
|
|
|
750
748
|
const response = await config.api.users.deleteUser(user._id!, 400)
|
|
751
749
|
|
|
@@ -756,9 +754,7 @@ describe("/api/global/users", () => {
|
|
|
756
754
|
const user = await config.user!
|
|
757
755
|
const account = structures.accounts.cloudAccount()
|
|
758
756
|
account.email = user.email
|
|
759
|
-
accounts.
|
|
760
|
-
Promise.resolve(account)
|
|
761
|
-
)
|
|
757
|
+
accounts.getAccount.mockReturnValueOnce(Promise.resolve(account))
|
|
762
758
|
|
|
763
759
|
const response = await config.api.users.deleteUser(user._id!, 400)
|
|
764
760
|
|