Skip to content

Commit

Permalink
updated dom render unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
sreeisalso committed Jan 12, 2025
1 parent 1a6dbd1 commit e99a0fb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions packages/qwik/src/core/render/dom/render.unit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { assert, test, suite } from 'vitest';
import { createDOM } from '../../../testing/library';
import { renderToString } from '../../../server/render';
import { createDocument } from '../../../testing/document';
import { ComponentStylesPrefixContent as prefix } from 'packages/qwik/src/core/util/markers';

test('should render basic content', async () => {
const fixture = new ElementFixture();
Expand Down Expand Up @@ -218,15 +219,15 @@ test('should render a component with scoped styles', async () => {
`
<host q:version="dev" q:container="resumed" q:render="dom-dev">
<style q:style="ml52vk-0" hidden="">
.stuff.⭐️ml52vk-0 {
.stuff.${prefix}ml52vk-0 {
color: red;
}
</style>
<!--qv -->
<div class="⭐️ml52vk-0">
<div class="⭐️ml52vk-0 stuff" aria-hidden="true">
<div class="${prefix}ml52vk-0">
<div class="${prefix}ml52vk-0 stuff" aria-hidden="true">
Hello
<button class="⭐️ml52vk-0">
<button class="${prefix}ml52vk-0">
Toggle
</button>
</div>
Expand All @@ -241,15 +242,15 @@ test('should render a component with scoped styles', async () => {
`
<host q:version="dev" q:container="resumed" q:render="dom-dev">
<style q:style="ml52vk-0" hidden="">
.stuff.⭐️ml52vk-0 {
.stuff.${prefix}ml52vk-0 {
color: red;
}
</style>
<!--qv -->
<div class="⭐️ml52vk-0">
<div class="⭐️ml52vk-0">
<div class="${prefix}ml52vk-0">
<div class="${prefix}ml52vk-0">
Hello
<button class="⭐️ml52vk-0">
<button class="${prefix}ml52vk-0">
Toggle
</button>
</div>
Expand Down

0 comments on commit e99a0fb

Please sign in to comment.