summaryrefslogtreecommitdiff
path: root/cli/tests
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests')
-rw-r--r--cli/tests/lsp/did_open_notification_mbc_fmt.json12
-rw-r--r--cli/tests/lsp/formatting_request_mbc_fmt.json14
2 files changed, 26 insertions, 0 deletions
diff --git a/cli/tests/lsp/did_open_notification_mbc_fmt.json b/cli/tests/lsp/did_open_notification_mbc_fmt.json
new file mode 100644
index 000000000..528dad25d
--- /dev/null
+++ b/cli/tests/lsp/did_open_notification_mbc_fmt.json
@@ -0,0 +1,12 @@
+{
+ "jsonrpc": "2.0",
+ "method": "textDocument/didOpen",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts",
+ "languageId": "typescript",
+ "version": 1,
+ "text": "const bar = 'πŸ‘πŸ‡ΊπŸ‡ΈπŸ˜ƒ'\nconsole.log('hello deno')\n"
+ }
+ }
+}
diff --git a/cli/tests/lsp/formatting_request_mbc_fmt.json b/cli/tests/lsp/formatting_request_mbc_fmt.json
new file mode 100644
index 000000000..f20cc18e6
--- /dev/null
+++ b/cli/tests/lsp/formatting_request_mbc_fmt.json
@@ -0,0 +1,14 @@
+{
+ "jsonrpc": "2.0",
+ "id": 2,
+ "method": "textDocument/formatting",
+ "params": {
+ "textDocument": {
+ "uri": "file:///a/file.ts"
+ },
+ "options": {
+ "tabSize": 2,
+ "insertSpaces": true
+ }
+ }
+}