summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/tclient/tests/multi-workspace.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/tclient/tests/multi-workspace.lua b/test/tclient/tests/multi-workspace.lua
index 99b7f122..02ebacbd 100644
--- a/test/tclient/tests/multi-workspace.lua
+++ b/test/tclient/tests/multi-workspace.lua
@@ -4,6 +4,7 @@ local util = require 'utility'
local furi = require 'file-uri'
local ws = require 'workspace'
local files = require 'files'
+local scope = require 'workspace.scope'
local rootPath = LOGPATH .. '/multi-workspace'
local rootUri = furi.encode(rootPath)
@@ -66,11 +67,11 @@ lclient():start(function (client)
assert(files.getState(rootUri .. '/lb1/test.lua') ~= nil)
assert(files.getState(rootUri .. '/lb2/test.lua') ~= nil)
- assert(ws.getScope(rootUri .. '/ws1/test.lua').uri == rootUri .. '/ws1')
- assert(ws.getScope(rootUri .. '/ws2/test.lua').uri == rootUri .. '/ws2')
- assert(ws.getScope(rootUri .. '/share/test.lua').uri == rootUri .. '/ws1')
- assert(ws.getScope(rootUri .. '/lb1/test.lua').uri == rootUri .. '/ws1')
- assert(ws.getScope(rootUri .. '/lb2/test.lua').uri == rootUri .. '/ws2')
+ assert(scope.getScope(rootUri .. '/ws1/test.lua').uri == rootUri .. '/ws1')
+ assert(scope.getScope(rootUri .. '/ws2/test.lua').uri == rootUri .. '/ws2')
+ assert(scope.getScope(rootUri .. '/share/test.lua').uri == rootUri .. '/ws1')
+ assert(scope.getScope(rootUri .. '/lb1/test.lua').uri == rootUri .. '/ws1')
+ assert(scope.getScope(rootUri .. '/lb2/test.lua').uri == rootUri .. '/ws2')
assert(files.isLibrary(rootUri .. '/ws1/test.lua') == false)
assert(files.isLibrary(rootUri .. '/ws2/test.lua') == false)