From 3914501084ea417676b0fa23efdef552d9065027 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Tue, 26 Jul 2022 15:34:56 +0100 Subject: [PATCH] remove uncessary test non we default to users being no access --- .../src/components/start/CreateAppModal.svelte | 1 - packages/server/src/api/routes/tests/user.spec.js | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte index 2cf1ce7f6c..23f9f3f80c 100644 --- a/packages/builder/src/components/start/CreateAppModal.svelte +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -111,7 +111,6 @@ await admin.init() // Create user - await API.updateOwnMetadata({ roleId: $values.roleId }) await auth.setInitInfo({}) // Create a default home screen if no template was selected diff --git a/packages/server/src/api/routes/tests/user.spec.js b/packages/server/src/api/routes/tests/user.spec.js index 1f1c1755cd..04b7297df3 100644 --- a/packages/server/src/api/routes/tests/user.spec.js +++ b/packages/server/src/api/routes/tests/user.spec.js @@ -23,20 +23,6 @@ describe("/users", () => { }) describe("fetch", () => { - it("returns a list of users from an instance db", async () => { - await config.createUser("uuidx") - await config.createUser("uuidy") - const res = await request - .get(`/api/users/metadata`) - .set(config.defaultHeaders()) - .expect("Content-Type", /json/) - .expect(200) - - expect(res.body.length).toBe(3) - console.debug('test: ' + JSON.stringify(res.body)) - expect(res.body.find(u => u._id === `ro_ta_users_us_uuidx`)).toBeDefined() - expect(res.body.find(u => u._id === `ro_ta_users_us_uuidy`)).toBeDefined() - }) it("should apply authorization to endpoint", async () => { await config.createUser()