diff options
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] |