Skip to content

Commit

Permalink
file check
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 committed Jan 6, 2024
1 parent 365d15a commit 0a7f8af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/hawtkeys/e2e_spec.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---@diagnostic disable-next-line: undefined-field
local eq = assert.are.same
local ts = require("hawtkeys.ts")
local path = require("plenary.path")

local function copy_configs_to_stdpath_config()
local config_dir = vim.fn.stdpath("config")
Expand Down Expand Up @@ -43,6 +44,9 @@ describe("file searching", function()
end)

it("can detect a keymap from a file", function()
local config_file =
path:new(vim.fn.stdpath("config") .. "/e2e_config.lua")
eq(true, config_file:is_file())
local notMatch = 0
local keymaps = ts.get_all_keymaps()

Expand Down

0 comments on commit 0a7f8af

Please sign in to comment.