From 0efe244e4069dbeaaa3a4bb3403b80e0ed02eec6 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Wed, 4 Mar 2020 19:51:25 -0500 Subject: [PATCH] update tests --- test/js/samples/capture-inject-state/expected.js | 4 ++-- test/js/samples/debug-empty/expected.js | 4 ++-- test/js/samples/debug-foo-bar-baz-things/expected.js | 4 ++-- test/js/samples/debug-foo/expected.js | 4 ++-- test/js/samples/debug-hoisted/expected.js | 4 ++-- test/js/samples/debug-no-dependencies/expected.js | 4 ++-- test/js/samples/dev-warning-missing-data-computed/expected.js | 4 ++-- test/js/samples/loop-protect/expected.js | 4 ++-- test/runtime/samples/component-slot-warning/_config.js | 4 ++-- 9 files changed, 18 insertions(+), 18 deletions(-) diff --git a/test/js/samples/capture-inject-state/expected.js b/test/js/samples/capture-inject-state/expected.js index 017d9868d5..cd719ac5d2 100644 --- a/test/js/samples/capture-inject-state/expected.js +++ b/test/js/samples/capture-inject-state/expected.js @@ -14,7 +14,7 @@ import { space, subscribe, text, - validate_slot, + validate_slots, validate_store } from "svelte/internal"; @@ -116,7 +116,7 @@ function instance($$self, $$props, $$invalidate) { }); let { $$slots = {}, $$scope } = $$props; - validate_slot($$slots, []); + validate_slots("Component", $$slots, []); $$self.$set = $$props => { if ("prop" in $$props) $$subscribe_prop($$invalidate(0, prop = $$props.prop)); diff --git a/test/js/samples/debug-empty/expected.js b/test/js/samples/debug-empty/expected.js index 6f16a655ee..dd142adb26 100644 --- a/test/js/samples/debug-empty/expected.js +++ b/test/js/samples/debug-empty/expected.js @@ -13,7 +13,7 @@ import { set_data_dev, space, text, - validate_slot + validate_slots } from "svelte/internal"; const file = undefined; @@ -77,7 +77,7 @@ function instance($$self, $$props, $$invalidate) { }); let { $$slots = {}, $$scope } = $$props; - validate_slot($$slots, []); + validate_slots("Component", $$slots, []); $$self.$set = $$props => { if ("name" in $$props) $$invalidate(0, name = $$props.name); diff --git a/test/js/samples/debug-foo-bar-baz-things/expected.js b/test/js/samples/debug-foo-bar-baz-things/expected.js index 4352e981f8..977702b99f 100644 --- a/test/js/samples/debug-foo-bar-baz-things/expected.js +++ b/test/js/samples/debug-foo-bar-baz-things/expected.js @@ -15,7 +15,7 @@ import { space, text, validate_each_argument, - validate_slot + validate_slots } from "svelte/internal"; const file = undefined; @@ -181,7 +181,7 @@ function instance($$self, $$props, $$invalidate) { }); let { $$slots = {}, $$scope } = $$props; - validate_slot($$slots, []); + validate_slots("Component", $$slots, []); $$self.$set = $$props => { if ("things" in $$props) $$invalidate(0, things = $$props.things); diff --git a/test/js/samples/debug-foo/expected.js b/test/js/samples/debug-foo/expected.js index 8767eb3aca..fe62ff77bf 100644 --- a/test/js/samples/debug-foo/expected.js +++ b/test/js/samples/debug-foo/expected.js @@ -15,7 +15,7 @@ import { space, text, validate_each_argument, - validate_slot + validate_slots } from "svelte/internal"; const file = undefined; @@ -173,7 +173,7 @@ function instance($$self, $$props, $$invalidate) { }); let { $$slots = {}, $$scope } = $$props; - validate_slot($$slots, []); + validate_slots("Component", $$slots, []); $$self.$set = $$props => { if ("things" in $$props) $$invalidate(0, things = $$props.things); diff --git a/test/js/samples/debug-hoisted/expected.js b/test/js/samples/debug-hoisted/expected.js index a774f99b5d..0e634297f0 100644 --- a/test/js/samples/debug-hoisted/expected.js +++ b/test/js/samples/debug-hoisted/expected.js @@ -5,7 +5,7 @@ import { init, noop, safe_not_equal, - validate_slot + validate_slots } from "svelte/internal"; const file = undefined; @@ -58,7 +58,7 @@ function instance($$self, $$props, $$invalidate) { }); let { $$slots = {}, $$scope } = $$props; - validate_slot($$slots, []); + validate_slots("Component", $$slots, []); $$self.$capture_state = () => ({ obj, kobzol }); $$self.$inject_state = $$props => { diff --git a/test/js/samples/debug-no-dependencies/expected.js b/test/js/samples/debug-no-dependencies/expected.js index 3f89b93bc1..76068e8cf4 100644 --- a/test/js/samples/debug-no-dependencies/expected.js +++ b/test/js/samples/debug-no-dependencies/expected.js @@ -12,7 +12,7 @@ import { space, text, validate_each_argument, - validate_slot + validate_slots } from "svelte/internal"; const file = undefined; @@ -143,7 +143,7 @@ function instance($$self, $$props) { }); let { $$slots = {}, $$scope } = $$props; - validate_slot($$slots, []); + validate_slots("Component", $$slots, []); return []; } diff --git a/test/js/samples/dev-warning-missing-data-computed/expected.js b/test/js/samples/dev-warning-missing-data-computed/expected.js index 658260a080..0a50e2cd97 100644 --- a/test/js/samples/dev-warning-missing-data-computed/expected.js +++ b/test/js/samples/dev-warning-missing-data-computed/expected.js @@ -13,7 +13,7 @@ import { set_data_dev, space, text, - validate_slot + validate_slots } from "svelte/internal"; const file = undefined; @@ -74,7 +74,7 @@ function instance($$self, $$props, $$invalidate) { }); let { $$slots = {}, $$scope } = $$props; - validate_slot($$slots, []); + validate_slots("Component", $$slots, []); $$self.$set = $$props => { if ("foo" in $$props) $$invalidate(0, foo = $$props.foo); diff --git a/test/js/samples/loop-protect/expected.js b/test/js/samples/loop-protect/expected.js index 3dfd75911e..c52d9df437 100644 --- a/test/js/samples/loop-protect/expected.js +++ b/test/js/samples/loop-protect/expected.js @@ -12,7 +12,7 @@ import { loop_guard, noop, safe_not_equal, - validate_slot + validate_slots } from "svelte/internal"; const { console: console_1 } = globals; @@ -112,7 +112,7 @@ function instance($$self, $$props, $$invalidate) { }); let { $$slots = {}, $$scope } = $$props; - validate_slot($$slots, []); + validate_slots("Component", $$slots, []); function div_binding($$value) { binding_callbacks[$$value ? "unshift" : "push"](() => { diff --git a/test/runtime/samples/component-slot-warning/_config.js b/test/runtime/samples/component-slot-warning/_config.js index e652d8e4fd..6ffe624782 100644 --- a/test/runtime/samples/component-slot-warning/_config.js +++ b/test/runtime/samples/component-slot-warning/_config.js @@ -3,7 +3,7 @@ export default { dev: true }, warnings: [ - 'Received unexpected slot named "default"', - 'Received unexpected slot named "slot1"' + ' received an unexpected slot "default".', + ' received an unexpected slot "slot1".' ] };