Refactoring: use theme instead of layout in a lot of places

This commit is contained in:
Pieter Vander Vennet 2024-10-17 04:06:03 +02:00
parent 9427083939
commit bdc9ba52a6
104 changed files with 445 additions and 449 deletions

View file

@ -1,4 +1,4 @@
import LayoutConfig from "../../../../src/Models/ThemeConfig/LayoutConfig"
import ThemeConfig from "../../../../src/Models/ThemeConfig/ThemeConfig"
import { FixLegacyTheme } from "../../../../src/Models/ThemeConfig/Conversion/LegacyJsonConvert"
import { describe, expect, it } from "vitest"
@ -139,7 +139,7 @@ describe("FixLegacyTheme", () => {
const fixed = new FixLegacyTheme().convert(<any>walking_node_theme, context)
// "Could not fix the legacy theme"
expect(!context.hasErrors())
const theme = new LayoutConfig(fixed, false)
const theme = new ThemeConfig(fixed, false)
expect(theme).toBeDefined()
})
})