Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
wuls committed Jul 29, 2024
1 parent 3e940b7 commit 351d692
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/qwik/src/core/v2/tests/render-api.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ const defaultManifest: QwikManifest = {
manifestHash: 'manifest-hash',
symbols: {},
bundles: {},
mapping: {},
mapping: {
click: 'click.js',
s_counter: 's_counter.js',
s_click: 's_click.js',
},
version: '1',
};

const defaultCounterManifest: QwikManifest = {
...defaultManifest,
mapping: {
click: 'click.js',
},
};

const ManyEventsComponent = component$(() => {
Expand Down Expand Up @@ -268,7 +269,7 @@ describe('render api', () => {
});

it('should escape invalid characters', async () => {
const Cmp = component$(() => {
const Cmp = componentQrl(inlinedQrl(() => {
const obj = {
a: '123',
b: '<script />',
Expand All @@ -279,7 +280,7 @@ describe('render api', () => {
{JSON.stringify(obj)}
</div>
);
});
}, 's_counter'));
const result = await renderToStringAndSetPlatform(<Cmp />, {
containerTagName: 'div',
manifest: defaultManifest,
Expand Down Expand Up @@ -774,6 +775,7 @@ describe('render api', () => {
},
mapping: {
counter: 'counter.js',
s_click: 's_click.js'
},
version: '1',
};
Expand Down

0 comments on commit 351d692

Please sign in to comment.