File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
runtime-runes/samples/props Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -263,11 +263,6 @@ async function run_test_variant(
263
263
if ( runes ) {
264
264
props = $ . proxy ( { ...( config . props || { } ) } ) ;
265
265
266
- // TODO get rid
267
- props . $set = ( new_props : Record < string , any > ) => {
268
- Object . assign ( props , new_props ) ;
269
- } ;
270
-
271
266
const render = variant === 'hydrate' ? hydrate : mount ;
272
267
instance = render ( mod . default , {
273
268
target,
Original file line number Diff line number Diff line change 1
- import { flushSync } from '../../../../src/index-client.js ' ;
1
+ import { flushSync } from 'svelte ' ;
2
2
import { test } from '../../test' ;
3
3
4
4
export default test ( {
@@ -14,13 +14,10 @@ export default test({
14
14
html : `x 1 2 3 z` ,
15
15
16
16
async test ( { assert, target, component } ) {
17
- flushSync ( ( ) => {
18
- component . foo = 'y' ;
19
- } ) ;
17
+ flushSync ( ( ) => ( component . foo = 'y' ) ) ;
20
18
assert . htmlEqual ( target . innerHTML , `y 1 2 3 z` ) ;
21
19
22
- // rest props don't generate accessors, so we need to use $set
23
- await component . $set ( { bar : 'w' } ) ;
20
+ flushSync ( ( ) => ( component . bar = 'w' ) ) ;
24
21
assert . htmlEqual ( target . innerHTML , `y 1 2 3 w` ) ;
25
22
}
26
23
} ) ;
You can’t perform that action at this time.
0 commit comments