Skip to content

Commit

Permalink
delete other constant, fix nit
Browse files Browse the repository at this point in the history
  • Loading branch information
luminousleek committed Mar 30, 2024
1 parent 21fc299 commit 7f6f663
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions packages/core/test/unit/html/NodeProcessor.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,25 @@ export const PROCESS_PANEL_ATTRIBUTES_EXPECTED = `
`;

export const PROCESS_PANEL_HEADER_SLOT_TAKES_PRIORITY = `
<panel header="# Lorem ipsum">
<panel header="# Lorem ipsum" alt="**strong alt**">
<div slot="header">
This existing header slot should be preserved in favour over header attribute, with a logger warning for repeated attributes.
This existing header slot should be preserved in favour over header attribute.
</div>
Header attribute should be ignored and deleted while header slot is reserved.
Header attribute should not be inserted under panel since there is both an alt attribute and header slot,
but should be deleted.
Alt attribute should be inserted under panel as slot.
</panel>
`;

export const PROCESS_PANEL_HEADER_SLOT_TAKES_PRIORITY_EXPECTED = `
<panel>
<panel><template #_alt><p><strong>strong alt</strong></p>
</template>
<template #header><div>
This existing header slot should be preserved in favour over header attribute, with a logger warning for repeated attributes.
This existing header slot should be preserved in favour over header attribute.
</div></template>
Header attribute should be ignored and deleted while header slot is reserved.
Header attribute should not be inserted under panel since there is both an alt attribute and header slot,
but should be deleted.
Alt attribute should be inserted under panel as slot.
</panel>
`;

Expand Down Expand Up @@ -70,7 +75,7 @@ export const PROCESS_QUESTION_ATTRIBUTES_EXPECTED = `
`;

export const PROCESS_QUESTION_HEADER_SLOT_TAKES_PRIORITY = `
<question header="**header**">
<question header="**lorem ipsum**">
<template slot="header"></template>
</question>
`;
Expand All @@ -82,7 +87,7 @@ export const PROCESS_QUESTION_HEADER_SLOT_TAKES_PRIORITY_EXPECTED = `
`;

export const PROCESS_QUESTION_HINT_SLOT_TAKES_PRIORITY = `
<question hint="**hint**">
<question hint="**lorem ipsum**">
<template slot="hint"></template>
</question>
`;
Expand All @@ -94,7 +99,7 @@ export const PROCESS_QUESTION_HINT_SLOT_TAKES_PRIORITY_EXPECTED = `
`;

export const PROCESS_QUESTION_ANSWER_SLOT_TAKES_PRIORITY = `
<question answer="**answer**">
<question answer="**lorem ipsum**">
<template slot="answer"></template>
</question>
`;
Expand Down

0 comments on commit 7f6f663

Please sign in to comment.