remove unnecessary test (#10008)

Co-authored-by: Rich Harris <rich.harris@vercel.com>
pull/10005/head
Rich Harris 7 months ago committed by GitHub
parent 8a013c4cc6
commit 2ad5e53d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,11 +2,11 @@
const { visible = true, foo = 1 } = $props();
function bar(node, params) {
node.foo = params;
node.foo = params;
return () => ({});
}
</script>
{#if visible}
<div transition:bar={foo}></div>
{/if}
{/if}

@ -1,14 +0,0 @@
import { test } from '../../test';
export default test({
test({ assert, component, target, raf }) {
component.visible = true;
const div = /** @type {HTMLDivElement & { foo: number }} */ (target.querySelector('div'));
raf.tick(0);
assert.equal(div.foo, 0);
raf.tick(50);
assert.equal(div.foo, 0.5);
}
});

@ -1,16 +0,0 @@
<script>
const { visible = false } = $props();
function foo(node, params) {
return {
duration: 100,
tick: t => {
node.foo = t;
}
};
}
</script>
{#if visible}
<div transition:foo></div>
{/if}
Loading…
Cancel
Save