diff options
Diffstat (limited to 'test/linter/test_eslint.vader')
-rw-r--r-- | test/linter/test_eslint.vader | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/linter/test_eslint.vader b/test/linter/test_eslint.vader index f4f2e309..6c05fc6d 100644 --- a/test/linter/test_eslint.vader +++ b/test/linter/test_eslint.vader @@ -76,3 +76,12 @@ Execute(eslint.js should be run from a containing project with .yarn/sdks): AssertLinter b:executable, \ (has('win32') ? ale#Escape('node.exe') . ' ' : '') \ . ale#Escape(b:executable) . b:args + +Execute(astro directories should be detected correctly): + call ale#test#SetFilename('../test-files/eslint/astro-app/src/pages/index.astro') + + let b:executable = ale#path#Simplify(g:dir . '/../test-files/eslint/astro-app/node_modules/eslint/bin/eslint.js') + AssertLinterCwd ale#path#Simplify(g:dir . '/../test-files/eslint/astro-app') + AssertLinter b:executable, + \ (has('win32') ? ale#Escape('node.exe') . ' ' : '') + \ . ale#Escape(b:executable) . b:args |