diff --git a/test/js/samples/deconflict-globals/expected-bundle.js b/test/js/samples/deconflict-globals/expected-bundle.js index 61cc091f93..17898cf414 100644 --- a/test/js/samples/deconflict-globals/expected-bundle.js +++ b/test/js/samples/deconflict-globals/expected-bundle.js @@ -168,9 +168,9 @@ function SvelteComponent(options) { var self = this; var _oncreate = function() { - var initial = { changed: { }, current: self._state, previous: undefined }; + var changed = { }; oncreate.call(self); - self.fire("update", initial); + self.fire("update", { changed: changed, current: self._state }); }; if (!options.root) { diff --git a/test/js/samples/deconflict-globals/expected.js b/test/js/samples/deconflict-globals/expected.js index 99ef4f5659..91192f4cca 100644 --- a/test/js/samples/deconflict-globals/expected.js +++ b/test/js/samples/deconflict-globals/expected.js @@ -32,9 +32,9 @@ function SvelteComponent(options) { var self = this; var _oncreate = function() { - var initial = { changed: { }, current: self._state, previous: undefined }; + var changed = { }; oncreate.call(self); - self.fire("update", initial); + self.fire("update", { changed: changed, current: self._state }); }; if (!options.root) { diff --git a/test/js/samples/onrender-onteardown-rewritten/expected-bundle.js b/test/js/samples/onrender-onteardown-rewritten/expected-bundle.js index 28b9ab51ef..4b1a9fc481 100644 --- a/test/js/samples/onrender-onteardown-rewritten/expected-bundle.js +++ b/test/js/samples/onrender-onteardown-rewritten/expected-bundle.js @@ -163,9 +163,9 @@ function SvelteComponent(options) { var self = this; var _oncreate = function() { - var initial = { changed: { }, current: self._state, previous: undefined }; + var changed = { }; oncreate.call(self); - self.fire("update", initial); + self.fire("update", { changed: changed, current: self._state }); }; if (!options.root) { diff --git a/test/js/samples/onrender-onteardown-rewritten/expected.js b/test/js/samples/onrender-onteardown-rewritten/expected.js index 0de4ce702f..fed341a7f9 100644 --- a/test/js/samples/onrender-onteardown-rewritten/expected.js +++ b/test/js/samples/onrender-onteardown-rewritten/expected.js @@ -28,9 +28,9 @@ function SvelteComponent(options) { var self = this; var _oncreate = function() { - var initial = { changed: { }, current: self._state, previous: undefined }; + var changed = { }; oncreate.call(self); - self.fire("update", initial); + self.fire("update", { changed: changed, current: self._state }); }; if (!options.root) {