8000 Implement RFC 13 Passing CSS custom properties to components by tanhauhau · Pull Request #6237 · sveltejs/svelte · GitHub
[go: up one dir, main page]

Skip to content

Implement RFC 13 Passing CSS custom properties to components #6237

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 30, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
hopefully fix tests on Windows
  • Loading branch information
Conduitry committed Apr 30, 2021
commit 94128b707e029f41774c3ce1b47c588f06edaa46
10 changes: 5 additions & 5 deletions test/runtime-puppeteer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ describe('runtime (puppeteer)', () => {
load(id) {
if (id === 'main') {
return `
import SvelteComponent from '${__dirname}/samples/${dir}/main.svelte';
import config from '${__dirname}/samples/${dir}/_config.js';
import SvelteComponent from ${JSON.stringify(path.join(__dirname, 'samples', dir, 'main.svelte'))};
import config from ${JSON.stringify(path.join(__dirname, 'samples', dir, '_config.js'))};
import * as assert from 'assert';

export default async function (target) {
Expand Down Expand Up @@ -143,16 +143,16 @@ describe('runtime (puppeteer)', () => {
target,
window,
});

component.$destroy();

if (unhandled_rejection) {
throw unhandled_rejection;
}
} else {
component.$destroy();
assert.htmlEqual(target.innerHTML, '');

if (unhandled_rejection) {
throw unhandled_rejection;
}
Expand Down
0