Skip to content

Commit

Permalink
fix applyTheme tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asanehisa committed Dec 9, 2024
1 parent 7f6648a commit 5934828
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/applyTheme.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe("buildCssOverridesStyle", () => {
it("should generate correct CSS with one override in c_theme", () => {
const document: Document = {
siteId: 123,
_site: {
_customDataOverrides: {
pagesTheme: [
{
themeConfiguration: {
Expand Down Expand Up @@ -34,7 +34,7 @@ describe("buildCssOverridesStyle", () => {
it("should generate correct CSS with multiple overrides in c_theme", () => {
const document: Document = {
siteId: 123,
_site: {
_customDataOverrides: {
pagesTheme: [
{
themeConfiguration: {
Expand Down Expand Up @@ -88,7 +88,7 @@ describe("buildCssOverridesStyle", () => {

it("should ignore saved values that are no longer in the themeConfig", () => {
const document: Document = {
_site: {
_customDataOverrides: {
pagesTheme: [
{
themeConfiguration: { data: JSON.stringify({ "--absdag": "red" }) },
Expand Down

0 comments on commit 5934828

Please sign in to comment.