From 4fb30835cdae57cec1cf02e8f874dfc886056ee6 Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Sun, 23 Feb 2020 21:59:27 +0000 Subject: [PATCH] few broken tests (typos) --- packages/server/appPackages/testApp/pages/main/page.json | 2 +- .../appPackages/testApp/pages/main/screens/screen2.json | 2 +- .../appPackages/testApp/pages/unauthenticated/page.json | 2 +- packages/server/tests/builder.spec.js | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) 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 +})