Skip to content

Commit 83628c9

Browse files
authored
fix main (#10237)
* fix main * fix main
1 parent 776ac3c commit 83628c9

File tree

2 files changed

+1
-12
lines changed
  • packages/svelte/tests

2 files changed

+1
-12
lines changed

packages/svelte/tests/compiler-errors/samples/unmatched-closing-tag-autoclose/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default test({
44
error: {
55
code: 'invalid-closing-tag-after-autoclose',
66
message:
7-
'</p> attempted to close element that was already automatically closed by <pre> (cannot nest <pre> inside <p>',
7+
'</p> attempted to close element that was already automatically closed by <pre> (cannot nest <pre> inside <p>)',
88
position: [24, 24]
99
}
1010
});

packages/svelte/tests/store/test.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ describe('derived', () => {
229229
it('maps a single store', () => {
230230
const a = writable(1);
231231

232-
// @ts-expect-error TODO feels like inference should work here
233232
const b = derived(a, (n) => n * 2);
234233

235234
const values: number[] = [];
@@ -251,7 +250,6 @@ describe('derived', () => {
251250
const a = writable(2);
252251
const b = writable(3);
253252

254-
// @ts-expect-error TODO feels like inference should work here
255253
const c = derived([a, b], ([a, b]) => a * b);
256254

257255
const values: number[] = [];
@@ -343,10 +341,8 @@ describe('derived', () => {
343341
it('prevents glitches', () => {
344342
const lastname = writable('Jekyll');
345343

346-
// @ts-expect-error TODO feels like inference should work here
347344
const firstname = derived(lastname, (n) => (n === 'Jekyll' ? 'Henry' : 'Edward'));
348345

349-
// @ts-expect-error TODO feels like inference should work here
350346
const fullname = derived([firstname, lastname], (names) => names.join(' '));
351347

352348
const values: string[] = [];
@@ -367,17 +363,14 @@ describe('derived', () => {
367363

368364
const values: string[] = [];
369365

370-
// @ts-expect-error TODO feels like inference should work here
371366
const a = derived(count, ($count) => {
372367
return 'a' + $count;
373368
});
374369

375-
// @ts-expect-error TODO feels like inference should work here
376370
const b = derived(count, ($count) => {
377371
return 'b' + $count;
378372
});
379373

380-
// @ts-expect-error TODO feels like inference should work here
381374
const combined = derived([a, b], ([a, b]) => {
382375
return a + b;
383376
});
@@ -399,12 +392,10 @@ describe('derived', () => {
399392

400393
const values: string[] = [];
401394

402-
// @ts-expect-error TODO feels like inference should work here
403395
const a = derived(root, ($root) => {
404396
return 'a' + $root.a;
405397
});
406398

407-
// @ts-expect-error TODO feels like inference should work here
408399
const b = derived([a, root], ([$a, $root]) => {
409400
return 'b' + $root.b + $a;
410401
});
@@ -426,7 +417,6 @@ describe('derived', () => {
426417

427418
const number = writable(1);
428419

429-
// @ts-expect-error TODO feels like inference should work here
430420
const numbers = derived(number, ($number) => {
431421
arr[0] = $number;
432422
return arr;
@@ -507,7 +497,6 @@ describe('derived', () => {
507497
const a = writable('one');
508498
const b = writable(1);
509499

510-
// @ts-expect-error TODO feels like inference should work here
511500
const c = derived([a, b], ([a, b]) => `${a} ${b}`);
512501

513502
assert.deepEqual(get(c), 'one 1');

0 commit comments

Comments
 (0)