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

@ -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" },
}) })
}) })