1
0
Fork 0
mirror of synced 2024-10-02 10:08:09 +13:00

few broken tests (typos)

This commit is contained in:
Michael Shanks 2020-02-23 21:59:27 +00:00
parent c3223f3523
commit 2d2e14789b
4 changed files with 7 additions and 7 deletions

View file

@ -10,6 +10,6 @@
], ],
"props": { "props": {
"_component": "@budibase/standard-components/container", "_component": "@budibase/standard-components/container",
"type": "div" "type": "div"
} }
} }

View file

@ -4,6 +4,6 @@
"props": { "props": {
"_component": "@budibase/standard-components/container", "_component": "@budibase/standard-components/container",
"className": "", "className": "",
"type": "div", "type": "div"
} }
} }

View file

@ -5,6 +5,6 @@
"componentLibraries": ["./customComponents","./moreCustomComponents"], "componentLibraries": ["./customComponents","./moreCustomComponents"],
"props" : { "props" : {
"_component": "@budibase/standard-components/container", "_component": "@budibase/standard-components/container",
"type": "div", "type": "div"
} }
} }

View file

@ -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 screen2 = require("../appPackages/testApp/pages/main/screens/screen2.json")
const { readJSON, pathExists, unlink, readFile } = require("fs-extra") const { readJSON, pathExists, unlink, readFile } = require("fs-extra")
const { getHashedCssPaths } = require("../utilities/builder/convertCssToFiles") const { getHashedCssPaths } = require("../utilities/builder/convertCssToFiles")
const listScreens = require("../utilities/builder/listScreens"); const listScreens = require("../utilities/builder/listScreens")
const app = require("./testApp")() const app = require("./testApp")()
testComponents.textbox.name = `./customComponents/textbox` testComponents.textbox.name = `./customComponents/textbox`
@ -48,8 +48,8 @@ it("/apppackage should get pages", async () => {
.get("/_builder/api/testApp/appPackage") .get("/_builder/api/testApp/appPackage")
.expect(statusCodes.OK) .expect(statusCodes.OK)
expect(body.pages).toEqual({ expect(body.pages).toEqual({
main: mainPage, main: { ...mainPage, name: "main" },
unauthenticated: unauthenticatedPage, unauthenticated: { ...unauthenticatedPage, name: "unauthenticated" },
}) })
}) })
@ -217,4 +217,4 @@ it("/savePage should prepare all necessary client files", async () => {
) )
expect(savedScreen2Css).toEqual(screen2Css) expect(savedScreen2Css).toEqual(screen2Css)
expect(indexHtmlMain.includes(screen2CssPaths.url)).toBe(true) expect(indexHtmlMain.includes(screen2CssPaths.url)).toBe(true)
}) })