Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fox0430 committed Nov 26, 2024
1 parent 09fcc28 commit ff4ea32
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions tests/texmode.nim
Original file line number Diff line number Diff line change
Expand Up @@ -179,20 +179,15 @@ suite "Ex mode: Write command":
if not isNimlangserverAvailable():
skip()
else:
writeFile(TestFilePath, "echo 1")

var status = initEditorStatus()

status.settings.lsp.enable = true

discard status.addNewBufferInCurrentWin(TestFilePath).get
status.bufStatus[0].buffer = initGapBuffer(@[ru"echo 1"])

block initLsp:
let workspaceRoot = TestDir
const LangId = "nim"

assert status.lspInitialize(workspaceRoot, LangId).isOk
assert status.addNewBufferInCurrentWin(TestFilePath).isOk

status.handleLspInitialize
status.handleLspInitialize

const Command = @[ru"w"]
status.exModeCommand(Command)
Expand Down

0 comments on commit ff4ea32

Please sign in to comment.