diff --git a/packages/server/appPackages/testApp/pages/main/page.json b/packages/server/appPackages/testApp/pages/main/page.json index 22ee1954e5..778ba2524d 100644 --- a/packages/server/appPackages/testApp/pages/main/page.json +++ b/packages/server/appPackages/testApp/pages/main/page.json @@ -10,6 +10,6 @@ ], "props": { "_component": "@budibase/standard-components/container", - "type": "div" + "type": "div" } } diff --git a/packages/server/appPackages/testApp/pages/main/screens/screen2.json b/packages/server/appPackages/testApp/pages/main/screens/screen2.json index e31e6c73ab..4b768a666e 100644 --- a/packages/server/appPackages/testApp/pages/main/screens/screen2.json +++ b/packages/server/appPackages/testApp/pages/main/screens/screen2.json @@ -4,6 +4,6 @@ "props": { "_component": "@budibase/standard-components/container", "className": "", - "type": "div", + "type": "div" } } diff --git a/packages/server/appPackages/testApp/pages/unauthenticated/page.json b/packages/server/appPackages/testApp/pages/unauthenticated/page.json index 25f343a762..0e9afc2dfc 100644 --- a/packages/server/appPackages/testApp/pages/unauthenticated/page.json +++ b/packages/server/appPackages/testApp/pages/unauthenticated/page.json @@ -5,6 +5,6 @@ "componentLibraries": ["./customComponents","./moreCustomComponents"], "props" : { "_component": "@budibase/standard-components/container", - "type": "div", + "type": "div" } } \ No newline at end of file diff --git a/packages/server/tests/builder.spec.js b/packages/server/tests/builder.spec.js index 89102146df..fe52de0984 100644 --- a/packages/server/tests/builder.spec.js +++ b/packages/server/tests/builder.spec.js @@ -9,7 +9,7 @@ const screen1 = require("../appPackages/testApp/pages/main/screens/screen1.json" const screen2 = require("../appPackages/testApp/pages/main/screens/screen2.json") const { readJSON, pathExists, unlink, readFile } = require("fs-extra") const { getHashedCssPaths } = require("../utilities/builder/convertCssToFiles") -const listScreens = require("../utilities/builder/listScreens"); +const listScreens = require("../utilities/builder/listScreens") const app = require("./testApp")() testComponents.textbox.name = `./customComponents/textbox` @@ -48,8 +48,8 @@ it("/apppackage should get pages", async () => { .get("/_builder/api/testApp/appPackage") .expect(statusCodes.OK) expect(body.pages).toEqual({ - main: mainPage, - unauthenticated: unauthenticatedPage, + main: { ...mainPage, name: "main" }, + unauthenticated: { ...unauthenticatedPage, name: "unauthenticated" }, }) }) @@ -217,4 +217,4 @@ it("/savePage should prepare all necessary client files", async () => { ) expect(savedScreen2Css).toEqual(screen2Css) expect(indexHtmlMain.includes(screen2CssPaths.url)).toBe(true) -}) \ No newline at end of file +})