From 753016104a671c80c1333cc8298548168217dbf5 Mon Sep 17 00:00:00 2001 From: Andrew Branch Date: Thu, 19 Nov 2020 12:06:10 -0800 Subject: [PATCH] Update JSX test errors --- ...pilationTypeArgumentSyntaxOfCall.errors.txt | 18 ++++++++++++++---- ...sxCheckJsxNoTypeArgumentsAllowed.errors.txt | 12 ++++++++---- 2 files changed, 22 insertions(+), 8 deletions(-) diff --git a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.errors.txt b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.errors.txt index f7a72cb5a7ba0..a06a04a16d4b0 100644 --- a/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.errors.txt +++ b/tests/baselines/reference/jsFileCompilationTypeArgumentSyntaxOfCall.errors.txt @@ -1,30 +1,40 @@ tests/cases/compiler/a.jsx(1,13): error TS1109: Expression expected. +tests/cases/compiler/a.jsx(4,1): error TS2657: JSX expressions must have one parent element. tests/cases/compiler/a.jsx(4,5): error TS1003: Identifier expected. +tests/cases/compiler/a.jsx(4,13): error TS1382: Unexpected token. Did you mean `{'>'}` or `>`? tests/cases/compiler/a.jsx(4,14): error TS17002: Expected corresponding JSX closing tag for 'number'. -tests/cases/compiler/a.jsx(4,20): error TS2657: JSX expressions must have one parent element. +tests/cases/compiler/a.jsx(5,1): error TS2657: JSX expressions must have one parent element. tests/cases/compiler/a.jsx(5,5): error TS1003: Identifier expected. tests/cases/compiler/a.jsx(5,6): error TS17008: JSX element 'number' has no corresponding closing tag. +tests/cases/compiler/a.jsx(5,14): error TS1382: Unexpected token. Did you mean `{'>'}` or `>`? tests/cases/compiler/a.jsx(6,1): error TS1005: '(); ~ !!! error TS1109: Expression expected. Foo(1); Foo``; >; + ~~~~~~~~~~~~~~~~~~~ +!!! error TS2657: JSX expressions must have one parent element. ~ !!! error TS1003: Identifier expected. + ~ +!!! error TS1382: Unexpected token. Did you mean `{'>'}` or `>`? ~~~~~~ !!! error TS17002: Expected corresponding JSX closing tag for 'number'. - ~ -!!! error TS2657: JSX expressions must have one parent element. />; + ~~~~~~~~~~~~~~~ ~ !!! error TS1003: Identifier expected. ~~~~~~ !!! error TS17008: JSX element 'number' has no corresponding closing tag. + ~ +!!! error TS1382: Unexpected token. Did you mean `{'>'}` or `>`? +!!! error TS2657: JSX expressions must have one parent element. + !!! error TS1005: ''}` or `>`? tests/cases/conformance/jsx/file.jsx(5,1): error TS1005: ' a={10} b="hi" />; // error, no type arguments in js - ~~~~~~~ -!!! error TS2695: Left side of comma operator is unused and has no side effects. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ !!! error TS1003: Identifier expected. ~~~~ !!! error TS2693: 'Prop' only refers to a type, but is being used as a value here. ~~~~ !!! error TS17008: JSX element 'Prop' has no corresponding closing tag. + ~ +!!! error TS1382: Unexpected token. Did you mean `{'>'}` or `>`? +!!! error TS2657: JSX expressions must have one parent element. + !!! error TS1005: '