mirror of https://github.com/sveltejs/svelte
remove unnecessary test (#10008)
Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/10005/head
parent
8a013c4cc6
commit
2ad5e53d53
@ -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…
Reference in new issue