From a7370ce02409ab9e8c88832795841e4e5cdbf5fa Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Tue, 1 Jan 2019 11:37:25 -0500 Subject: [PATCH] fix test --- .../js/samples/each-block-keyed-animated/expected.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/js/samples/each-block-keyed-animated/expected.js b/test/js/samples/each-block-keyed-animated/expected.js index 9c9bbff7f9..66db899b65 100644 --- a/test/js/samples/each-block-keyed-animated/expected.js +++ b/test/js/samples/each-block-keyed-animated/expected.js @@ -1,5 +1,5 @@ /* generated by Svelte vX.Y.Z */ -import { SvelteComponent as SvelteComponent_1, append, blankObject, createComment, createElement, createText, detachNode, fixAndOutroAndDestroyBlock, fixPosition, flush, init, insert, run, safe_not_equal, setData, updateKeyedEach, wrapAnimation } from "svelte/internal"; +import { SvelteComponent as SvelteComponent_1, animate, append, blankObject, createComment, createElement, createText, detachNode, fixAndOutroAndDestroyBlock, fix_position, flush, init, insert, noop, run, safe_not_equal, setData, updateKeyedEach } from "svelte/internal"; function get_each_context(ctx, list, i) { const child_ctx = Object.create(ctx); @@ -9,7 +9,7 @@ function get_each_context(ctx, list, i) { // (19:0) {#each things as thing (thing.id)} function create_each_block(component, key_1, ctx) { - var div, text_value = ctx.thing.name, text, rect, animation; + var div, text_value = ctx.thing.name, text, rect, stop_animation = noop; return { key: key_1, @@ -38,13 +38,13 @@ function create_each_block(component, key_1, ctx) { }, f() { - fixPosition(div); - if (animation) animation.stop(); + fix_position(div); + stop_animation(); }, a() { - if (animation) animation.stop(); - animation = wrapAnimation(div, rect, foo, {}); + stop_animation(); + stop_animation = animate(div, rect, foo, {}); }, d(detach) {