diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2021-08-27 10:12:59 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-27 10:12:59 +1000 |
commit | 935133f53af2b0efab5d22effff1239dc0e36147 (patch) | |
tree | f1cd283e50618e0cce4f70ff59a1e204856a592b /cli/lsp/tsc.rs | |
parent | b9a965c607966efff91118e9a6f604c8f48ba88e (diff) |
feat(cli): Update to TypeScript 4.4 (#11678)
Diffstat (limited to 'cli/lsp/tsc.rs')
-rw-r--r-- | cli/lsp/tsc.rs | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/cli/lsp/tsc.rs b/cli/lsp/tsc.rs index c5c3c08a9..0e5e3a995 100644 --- a/cli/lsp/tsc.rs +++ b/cli/lsp/tsc.rs @@ -3304,7 +3304,28 @@ mod tests { ); assert!(result.is_ok()); let response = result.unwrap(); - assert_eq!(response, json!({})); + assert_eq!( + response, + json!({ + "file:///a.ts": [ + { + "start": { + "line": 0, + "character": 35, + }, + "end": { + "line": 0, + "character": 35 + }, + "fileName": "file:///a.ts", + "messageText": "Identifier expected.", + "sourceLine": "const url = new URL(\"b.js\", import.", + "category": 1, + "code": 1003, + } + ] + }) + ); } #[test] |