Skip to content

Commit

Permalink
chore: style
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 committed Jan 14, 2024
1 parent cfb2935 commit be84a34
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions tests/hawtkeys/ts_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,17 @@ describe("Which Key Managed Maps", function()
eq("Function uses out of scope variables", keymap[1].rhs)
end)

it("can extract keymaps containing dot indexed out of scope variables", function()
local keymap = ts.find_maps_in_file(
"tests/hawtkeys/example_configs/which-key.register_keymap_out_of_scope_dot_index_variables.lua"
)
eq("n", keymap[1].mode)
eq("<leader>81dot", keymap[1].lhs)
eq("Function uses out of scope variables", keymap[1].rhs)
end)
it(
"can extract keymaps containing dot indexed out of scope variables",
function()
local keymap = ts.find_maps_in_file(
"tests/hawtkeys/example_configs/which-key.register_keymap_out_of_scope_dot_index_variables.lua"
)
eq("n", keymap[1].mode)
eq("<leader>81dot", keymap[1].lhs)
eq("Function uses out of scope variables", keymap[1].rhs)
end
)
end)

describe("Lazy Managed Plugins", function()
Expand Down

0 comments on commit be84a34

Please sign in to comment.