From 5e3385d90668c792919c7e2791620a6c0d569538 Mon Sep 17 00:00:00 2001 From: William Boman Date: Wed, 11 May 2022 16:10:57 +0200 Subject: chore: further decouple module structure (#685) --- tests/path_spec.lua | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 tests/path_spec.lua (limited to 'tests/path_spec.lua') diff --git a/tests/path_spec.lua b/tests/path_spec.lua deleted file mode 100644 index 3ccaf3ad..00000000 --- a/tests/path_spec.lua +++ /dev/null @@ -1,23 +0,0 @@ -local path = require "nvim-lsp-installer.path" - -describe("path", function() - it("concatenates paths", function() - assert.equal("foo/bar/baz/~", path.concat { "foo", "bar", "baz", "~" }) - end) - - it("concatenates paths on Windows", function() - local old_os = jit.os - jit.os = "windows" - package.loaded["nvim-lsp-installer.path"] = nil - local path = require "nvim-lsp-installer.path" - assert.equal([[foo\bar\baz\~]], path.concat { "foo", "bar", "baz", "~" }) - jit.os = old_os - end) - - it("identifies subdirectories", function() - assert.is_true(path.is_subdirectory("/foo/bar", "/foo/bar/baz")) - assert.is_true(path.is_subdirectory("/foo/bar", "/foo/bar")) - assert.is_false(path.is_subdirectory("/foo/bar", "/foo/bas/baz")) - assert.is_false(path.is_subdirectory("/foo/bar", "/foo/bars/baz")) - end) -end) -- cgit v1.2.3-70-g09d2