Skip to content

Commit 2516bb8

Browse files
test
1 parent 96c9a04 commit 2516bb8

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/components/sketch/SketchMain/Preview/respond-with.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,6 @@ const count = ref(0)
298298

299299
const code = uint8ToUTF8(new Uint8Array(res.content))
300300

301-
expect(code).include(
302-
'append_styles$(target, "svelte-12z9k06", "button.svelte-12z9k06{background:#ff3e00;color:white;border:none;padding:8px 12px;border-radius:2px}");'
303-
)
304-
expect(code).include("function instance$($$self, $$props, $$invalidate)")
301+
expect(code).include("var Component$ = class extends SvelteComponentDev$")
305302
})
306303
})

src/logic/compiler/compiler-file.spec.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,7 @@ const count = ref(0)
351351
)
352352
)
353353
)
354-
355-
expect(code).include(
356-
'append_styles$(target, "svelte-12z9k06", "button.svelte-12z9k06{background:#ff3e00;color:white;border:none;padding:8px 12px;border-radius:2px}");'
357-
)
358-
expect(code).include("function instance$($$self, $$props, $$invalidate)")
354+
355+
expect(code).include("var Component$ = class extends SvelteComponentDev$")
359356
})
360357
})

0 commit comments

Comments
 (0)