@@ -446,7 +446,7 @@ test('Cannot use function expressions', () => {
446446 stripIndent `
447447 (function fib(x) { return x <= 1 ? x : fib(x-1) + fib(x-2); })(4);
448448 ` ,
449- { chapter : 5 }
449+ { chapter : 5 as Chapter }
450450 ) . toMatchInlineSnapshot ( `"Line 1: Function expressions are not allowed"` )
451451} )
452452
@@ -456,7 +456,7 @@ test('Cannot use function expressions - verbose', () => {
456456 "enable verbose";
457457 (function fib(x) { return x <= 1 ? x : fib(x-1) + fib(x-2); })(4);
458458 ` ,
459- { chapter : 5 }
459+ { chapter : 5 as Chapter }
460460 ) . toMatchInlineSnapshot ( `
461461 "Line 2, Column 1: Function expressions are not allowed
462462 You are trying to use Function expressions, which is not allowed (yet).
@@ -469,7 +469,7 @@ test('Cannot use function expressions', () => {
469469 stripIndent `
470470 (function(x) { return x + 1; })(4);
471471 ` ,
472- { chapter : 5 }
472+ { chapter : 5 as Chapter }
473473 ) . toMatchInlineSnapshot ( `"Line 1: Function expressions are not allowed"` )
474474} )
475475
@@ -479,7 +479,7 @@ test('Cannot use function expressions - verbose', () => {
479479 "enable verbose";
480480 (function(x) { return x + 1; })(4);
481481 ` ,
482- { chapter : 5 }
482+ { chapter : 5 as Chapter }
483483 ) . toMatchInlineSnapshot ( `
484484 "Line 2, Column 1: Function expressions are not allowed
485485 You are trying to use Function expressions, which is not allowed (yet).
@@ -852,7 +852,7 @@ test('No classes', () => {
852852 class Box {
853853 }
854854 ` ,
855- { chapter : 5 }
855+ { chapter : 5 as Chapter }
856856 ) . toMatchInlineSnapshot ( `
857857 "Line 1: Class bodys are not allowed
858858 Line 1: Class declarations are not allowed"
@@ -866,7 +866,7 @@ test('No classes - verbose', () => {
866866 class Box {
867867 }
868868 ` ,
869- { chapter : 5 }
869+ { chapter : 5 as Chapter }
870870 ) . toMatchInlineSnapshot ( `
871871 "Line 2, Column 10: Class bodys are not allowed
872872 You are trying to use Class bodys, which is not allowed (yet).
@@ -886,7 +886,7 @@ test('No super', () => {
886886 }
887887 }
888888 ` ,
889- { chapter : 5 }
889+ { chapter : 5 as Chapter }
890890 ) . toMatchInlineSnapshot ( `
891891 "Line 3: Supers are not allowed
892892 Line 2: Function expressions are not allowed
@@ -906,7 +906,7 @@ test('No super - verbose', () => {
906906 }
907907 }
908908 ` ,
909- { chapter : 5 }
909+ { chapter : 5 as Chapter }
910910 ) . toMatchInlineSnapshot ( `
911911 "Line 4, Column 4: Supers are not allowed
912912 You are trying to use Supers, which is not allowed (yet).
0 commit comments