You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'The usage of `bind:this` can often be replaced with an easier to read `action` or even better an `attachment`. Consider using the latter if possible.',
'The usage of `bind:this` can often be replaced with an easier to read `action` or even better an `attachment`. Consider using the latter if possible.',
391
+
);
392
+
});
392
393
393
-
it('should not add suggestions when using bind:this on a component',()=>{
394
-
constcontent=run_autofixers_on_code(`
394
+
it('should not add suggestions when using bind:this on a component',()=>{
395
+
constcontent=run_autofixers_on_code(`
395
396
<script>
396
397
import Child from './Child.svelte';
397
398
let a = $state();
398
399
</script>
399
400
400
401
<Child bind:this={a} />`);
401
402
402
-
expect(content.suggestions).not.toContain(
403
-
'The usage of `bind:this` can often be replaced with an easier to read `action` or even better an `attachment`. Consider using the latter if possible.',
404
-
);
405
-
});
403
+
expect(content.suggestions).not.toContain(
404
+
'The usage of `bind:this` can often be replaced with an easier to read `action` or even better an `attachment`. Consider using the latter if possible.',
405
+
);
406
+
});
406
407
407
-
it('should not add suggestions when using bind:this on a component nested in an element',()=>{
408
-
constcontent=run_autofixers_on_code(`
408
+
it('should not add suggestions when using bind:this on a component nested in an element',()=>{
'The usage of `bind:this` can often be replaced with an easier to read `action` or even better an `attachment`. Consider using the latter if possible.',
420
-
);
421
-
});
419
+
expect(content.suggestions).not.toContain(
420
+
'The usage of `bind:this` can often be replaced with an easier to read `action` or even better an `attachment`. Consider using the latter if possible.',
421
+
);
422
+
});
422
423
423
-
it('should add suggestions but not suggest attachments when using bind:this on an element and the desired svelte version is 4',()=>{
424
-
constcontent=run_autofixers_on_code(
425
-
`
424
+
it('should add suggestions but not suggest attachments when using bind:this on an element and the desired svelte version is 4',()=>{
0 commit comments