From 961a921a09b81c7aba00177b7abfffb2f9ac3d76 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 19 Nov 2020 16:56:23 +0000 Subject: [PATCH] linting. --- packages/builder/src/components/start/CreateAppModal.svelte | 4 +++- .../userInterface/AppPreview/CurrentItemPreview.svelte | 4 +++- packages/client/tests/testAppDef.js | 5 ++++- packages/server/src/api/routes/tests/couchTestUtils.js | 4 +++- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/builder/src/components/start/CreateAppModal.svelte b/packages/builder/src/components/start/CreateAppModal.svelte index 85122c3ebe..049b21c995 100644 --- a/packages/builder/src/components/start/CreateAppModal.svelte +++ b/packages/builder/src/components/start/CreateAppModal.svelte @@ -149,7 +149,9 @@ }) // Select Correct Application/DB in prep for creating user - const applicationPkg = await get(`/api/applications/${appJson._id}/appPackage`) + const applicationPkg = await get( + `/api/applications/${appJson._id}/appPackage` + ) const pkg = await applicationPkg.json() if (applicationPkg.ok) { backendUiStore.actions.reset() diff --git a/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte b/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte index 9902d579ba..b3ec41b2a2 100644 --- a/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte +++ b/packages/builder/src/components/userInterface/AppPreview/CurrentItemPreview.svelte @@ -42,7 +42,9 @@ .normalStyle(textStyle) .instanceName("Text") .type("none") - .text("The screens that you create will be displayed inside this box. This box is just a placeholder, to show you the position of screens.") + .text( + "The screens that you create will be displayed inside this box. This box is just a placeholder, to show you the position of screens." + ) const container = new Component("@budibase/standard-components/container") .normalStyle({ display: "flex", diff --git a/packages/client/tests/testAppDef.js b/packages/client/tests/testAppDef.js index 0c8efa5940..76ed5bdf3d 100644 --- a/packages/client/tests/testAppDef.js +++ b/packages/client/tests/testAppDef.js @@ -51,7 +51,10 @@ const addWindowGlobals = (window, page, screens) => { } export const makePage = props => ({ props }) -export const makeScreen = (route, props) => ({ props, routing: { route, accessLevelId: "" } }) +export const makeScreen = (route, props) => ({ + props, + routing: { route, accessLevelId: "" }, +}) export const timeout = ms => new Promise(resolve => setTimeout(resolve, ms)) diff --git a/packages/server/src/api/routes/tests/couchTestUtils.js b/packages/server/src/api/routes/tests/couchTestUtils.js index cc62776bb1..ee12c1c6d8 100644 --- a/packages/server/src/api/routes/tests/couchTestUtils.js +++ b/packages/server/src/api/routes/tests/couchTestUtils.js @@ -109,7 +109,9 @@ exports.clearApplications = async request => { .set(exports.defaultHeaders()) for (let app of res.body) { const appId = app._id - await request.delete(`/api/applications/${appId}`).set(exports.defaultHeaders(appId)) + await request + .delete(`/api/applications/${appId}`) + .set(exports.defaultHeaders(appId)) } }