Add a download button, improve share functionality for custom themes

This commit is contained in:
Pieter Vander Vennet 2022-04-18 02:39:30 +02:00
parent 303ccfa322
commit 6ad64e3f70
10 changed files with 64 additions and 40 deletions

View file

@ -47,7 +47,7 @@ Utils.injectJsonDownloadForTests(
)
it("should download the latest version", () => {
const state = new UserRelatedState(new LayoutConfig(<any> bookcaseJson, true, "tests"))
const state = new UserRelatedState(new LayoutConfig(<any> bookcaseJson, true))
const feature = {
"type": "Feature",
"id": "node/5568693115",

View file

@ -145,7 +145,7 @@ describe("FixLegacyTheme", () => {
<any> walking_node_theme,
"While testing")
expect(fixed.errors, "Could not fix the legacy theme").empty
const theme = new LayoutConfig(fixed.result, false,"test")
const theme = new LayoutConfig(fixed.result, false)
expect(theme).not.undefined
})