summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_javascript_tsserver_command_callback.vader8
-rw-r--r--test/command_callback/tsserver_paths/src/file1.ts0
-rw-r--r--test/command_callback/tsserver_paths/src/level-1/file2.ts0
-rw-r--r--test/command_callback/tsserver_paths/src/level-1/level-2/file3.ts0
-rw-r--r--test/command_callback/tsserver_paths/src/level-1/tsconfig.json0
-rw-r--r--test/command_callback/tsserver_paths/tsconfig.json0
6 files changed, 8 insertions, 0 deletions
diff --git a/test/command_callback/test_javascript_tsserver_command_callback.vader b/test/command_callback/test_javascript_tsserver_command_callback.vader
index 638dd873..04230238 100644
--- a/test/command_callback/test_javascript_tsserver_command_callback.vader
+++ b/test/command_callback/test_javascript_tsserver_command_callback.vader
@@ -6,3 +6,11 @@ After:
Execute(The default command should be correct):
AssertLinter 'tsserver', ale#Escape('tsserver')
+
+Execute(should resolve correct path when nested 1):
+ call ale#test#SetFilename('tsserver_paths/src/level-1/level-2/file3.ts')
+ AssertLSPProject ale#path#Simplify(g:dir . '/tsserver_paths/src/level-1')
+
+Execute(should resolve correct path when nested 2):
+ call ale#test#SetFilename('tsserver_paths/src/file1.ts')
+ AssertLSPProject ale#path#Simplify(g:dir . '/tsserver_paths')
diff --git a/test/command_callback/tsserver_paths/src/file1.ts b/test/command_callback/tsserver_paths/src/file1.ts
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/tsserver_paths/src/file1.ts
diff --git a/test/command_callback/tsserver_paths/src/level-1/file2.ts b/test/command_callback/tsserver_paths/src/level-1/file2.ts
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/tsserver_paths/src/level-1/file2.ts
diff --git a/test/command_callback/tsserver_paths/src/level-1/level-2/file3.ts b/test/command_callback/tsserver_paths/src/level-1/level-2/file3.ts
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/tsserver_paths/src/level-1/level-2/file3.ts
diff --git a/test/command_callback/tsserver_paths/src/level-1/tsconfig.json b/test/command_callback/tsserver_paths/src/level-1/tsconfig.json
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/tsserver_paths/src/level-1/tsconfig.json
diff --git a/test/command_callback/tsserver_paths/tsconfig.json b/test/command_callback/tsserver_paths/tsconfig.json
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/command_callback/tsserver_paths/tsconfig.json